xvi Contents
15.2.7 <handlers> ..........................................................................................588
15.2.8 Non-tags and Non-attributes................................................................590
15.3 Combining Multiple Bindings......................................................................591
15.3.1 Simple Inheritance with extends= .....................................................591
15.3.2 Zero Content Bindings ..........................................................................592
15.3.3 Input Façade Bindings..........................................................................593
15.3.4 Inner Content Bindings.........................................................................594
15.4 How Bindings Are Processed........................................................................594
15.5 Scripting........................................................................................................595
15.6 Style Options.................................................................................................598
15.7 Hands On: The <noteplacer> Tag.............................................................598
15.7.1 Designing Widget Interfaces.................................................................599
15.7.2 Adding XBL Content .............................................................................602
15.7.3 Adding XBL Functionality....................................................................605
15.7.4 Integrating the Binding ........................................................................611
15.8 Debug Corner: XBL Diagnosis .....................................................................614
15.9 Summary.......................................................................................................615
16 XPCOM Objects................................................................................................. 617
16.1 Concepts and Terms......................................................................................619
16.1.1 Reading Others’ Code: Naming Conventions.......................................619
16.1.2 Modular Programming..........................................................................621
16.1.3 Foreign-Type Systems...........................................................................622
16.2 General-Purpose Scripting...........................................................................623
16.2.1 Command-Line Arguments...................................................................623
16.2.2 Data Structures and Algorithms ..........................................................624
16.2.3 Databases...............................................................................................625
16.2.4 Environment..........................................................................................628
16.2.5 Files and Folders ...................................................................................628
16.2.6 Interrupts and Signals..........................................................................632
16.2.7 Network Protocols..................................................................................633
16.2.8 Processes and Threads..........................................................................636
16.3 Data Transfer................................................................................................638
16.3.1 Content Processing Concepts................................................................638
16.3.2 Streams ..................................................................................................641
16.3.3 Transports..............................................................................................644
16.3.4 Channels ................................................................................................645
16.3.5 Data Sources..........................................................................................647
16.4 Web Scripting................................................................................................652
16.4.1 URIs, URLs, and URNs.........................................................................656
16.4.2 Downloading Files.................................................................................657
16.4.3 File and MIME Types............................................................................658
16.4.4 Uploading and Posting Files.................................................................659
16.4.5 Web Protocol Stack Objects...................................................................659
16.4.6 XSLT Batch Processing.........................................................................662
AppDevMozilla-000Book Page xvi Thursday, December 4, 2003 6:21 PM