Extensible Stylesheet Language (XSL) Brian Temple
about:XSL XSL is a language for expressing stylesheets –a language for transforming XML documents –an XML vocabulary for specifying formatting semantics
But, why XSL? Unlike HTML, XML element names have no intrinsic presentation semantics Builds on prior work of CSS2, DSSSL Can be extended
An Example XML Document Matthias Hauswirth 4500 Brookfield Dr. Boulder CO Brian Temple 1234 Strasse Boulder CO Brian pays Porsche Need a new one Ferrari
Simple XSL Document
Simple XSL Results
XSL:CHOOSE 100]">
XSL:CHOOSE Results
Processing a stylesheet
Formatting process Build formatting object tree Produce refined formatting object tree –mapping from properties to traits shorthand expansion into individual properties mapping of corresponding properties determining computed values inheritance Construct area tree
The Area Model
A Typical Area Tree
Fe Fi FO Fum This is an important word in this sentence that also refers to a variable....
Examples of Formatting Objects bidi-override block block-container character color-profile conditional-page-master-reference declarations external-graphic float flow footnote footnote-body initial-property-set inline inline-container instream-foreign-object layout-master-set leader list-block list-item list-item-body list-item-label marker multi-case multi-properties multi-property-set multi-switch multi-toggle page-number page-number-citation page-sequence page-sequence-master region-after region-before region-body region-end region-start repeatable-page-master-alternatives repeatable-page-master-reference retrieve-marker root simple-link simple-page-master single-page-master-reference static-content table table-and-caption table-body table-caption table-cell table-column table-footer table-header table-row title wrapper