[ Pobierz całość w formacie PDF ]
Pause Properties ........................................................................................427
Cue Properties ............................................................................................427
Play-During Property .................................................................................428
Spatial Properties .......................................................................................428
Voice Characteristics Properties ..............................................................429
Speech Properties ......................................................................................431
Chapter 14: XSL Transformations ..............................................................433
What Is XSL? .........................................................................................................433
Overview of XSL Transformations .....................................................................435
Trees ............................................................................................................435
XSL Style Sheet Documents ......................................................................437
Where Does the XML Transformation Happen? .....................................439
How to Use XT ............................................................................................440
Direct Display of XML Files with XSL Style Sheets .................................442
XSL Templates ......................................................................................................444
The xsl:apply-templates Element .............................................................445
The select Attribute ...................................................................................447
Computing the Value of a Node with xsl:value-of ............................................448
Processing Multiple Elements with xsl:for-each ..............................................450
Patterns for Matching Nodes ..............................................................................451
Matching the Root Node ............................................................................451
Matching Element Names ..........................................................................452
3236-7 FM.F.qc 6/30/99 2:59 PM Page xxviii
Contents
xxviii
Matching Children with / ...........................................................................454
Matching Descendants with // ..................................................................455
Matching by ID ............................................................................................456
Matching Attributes with @ ......................................................................456
Matching Comments with comment() .....................................................458
Matching Processing Instructions with pi() ...........................................459
Matching Text Nodes with text() ..............................................................460
Using the Or Operator | ............................................................................460
Testing with [ ] ............................................................................................461
Expressions for Selecting Nodes ........................................................................463
Node Axes ...................................................................................................463
Expression Types .......................................................................................470
The Default Template Rules ................................................................................480
The Default Rule for Elements ..................................................................480
The Default Rule for Text Nodes ..............................................................480
Implication of the Two Default Rules .......................................................481
Deciding What Output to Include ......................................................................481
Using Attribute Value Templates ..............................................................482
Inserting Elements into the Output with xsl:element ............................484
Inserting Attributes into the Output with xsl:attribute .........................484
Defining Attribute Sets ...............................................................................485
Generating Processing Instructions with xsl:pi ......................................486
Generating Comments with xsl:comment ...............................................487
Generating Text with xsl:text ....................................................................487
Copying the Current Node with xsl:copy ..........................................................488
Counting Nodes with xsl:number .......................................................................490
[ Pobierz całość w formacie PDF ]