Extensible Stylesheet Language (XSL) Version 1.1

Extensible Stylesheet Language (XSL) Version 1.1

Extensible Stylesheet Language (XSL) Version 1.1 W3C Recommendation 05 December 2006 This version: http://www.w3.org/TR/2006/REC-xsl11-20061205/ Latest version: http://www.w3.org/TR/xsl11/ Previous version: http://www.w3.org/TR/2006/PR-xsl11-20061006/ Editor: Anders Berglund (IBM) <[email protected]> Please refer to the errata for this document, which may include normative corrections. See also translations. This document is also available in these non-normative formats: PDF by RenderX and XML file. Copyright © 2006 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply. ii Abstract This specification defines the features and syntax for the Extensible Stylesheet Language (XSL), a lan- guage for expressing stylesheets. It consists of two parts: 1. a language for transforming XML documents (XSLT), and 2. an XML vocabulary for specifying formatting semantics. An XSL stylesheet specifies the presentation of a class of XML documents by describing how an instance of the class is transformed into an XML document that uses the formatting vocabulary. Status of this document This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/. Please see the Working Group's implementation report. This Recommendation supersedes [XSL 1.0], which was published 15 October 2001. New functionality has been added to support change marks, indexes, multiple flows, and bookmarks. Existing functionality has been extended in the areas of graphics scaling, "markers" and their retrieval in tables to support e.g. partial sums, and page number referencing. The changes made in this document are intended to meet the requirements for XSL 1.1 described in [XSL 1.1 Requirements]. A number of errata have been incorpo- rated into the text. See Appendix E – Changes from XSL 1.0 on page 494. This document has been produced as part of the W3C XML Activity by the XSL Working Group. Please send comments about this document to [email protected] (with public archive). General public discussion of XSL takes place on the XSL-List and on the www-xsl-fo mailing lists. This document has been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and is endorsed by the Director as a W3C Recommendation. It is a stable docu- ment and may be used as reference material or cited from another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its widespread deployment. This enhances the functionality and interoperability of the Web. This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accor- dance with section 6 of the W3C Patent Policy. Extensible Stylesheet Language (XSL) iii Table of Contents 1. Introduction and Overview ......................................................................................................... 1 1.1. Processing a Stylesheet ................................................................................................................ 1 1.1.1. Tree Transformations .......................................................................................................... 2 1.1.2. Formatting .......................................................................................................................... 3 1.2. Benefits of XSL ........................................................................................................................... 8 1.2.1. Paging and Scrolling .......................................................................................................... 8 1.2.2. Selectors and Tree Construction ......................................................................................... 9 1.2.3. An Extended Page Layout Model .................................................................................... 10 1.2.4. A Comprehensive Area Model ......................................................................................... 10 1.2.5. Internationalization and Writing-Modes .......................................................................... 10 1.2.6. Linking ............................................................................................................................. 11 2. XSL Transformation .................................................................................................................. 11 2.1. Tree Construction ....................................................................................................................... 11 2.2. XSL Namespace ......................................................................................................................... 12 3. Introduction to Formatting ....................................................................................................... 12 3.1. Conceptual Procedure ................................................................................................................ 14 4. Area Model .................................................................................................................................. 15 4.1. Introduction ................................................................................................................................ 15 4.2. Rectangular Areas ...................................................................................................................... 16 4.2.1. Area Types ........................................................................................................................ 16 4.2.2. Common Traits ................................................................................................................. 16 4.2.3. Geometric Definitions ...................................................................................................... 18 4.2.4. Tree Ordering ................................................................................................................... 20 4.2.5. Stacking Constraints ......................................................................................................... 21 4.2.6. Font Baseline Tables ......................................................................................................... 28 4.3. Spaces and Conditionality .......................................................................................................... 28 4.3.1. Space-resolution Rules ..................................................................................................... 29 4.3.2. Overconstrained space-specifiers ..................................................................................... 30 4.4. Block-areas ................................................................................................................................ 30 4.4.1. Stacked Block-areas ......................................................................................................... 31 4.4.2. Intrusion Adjustments ....................................................................................................... 33 4.5. Line-areas ................................................................................................................................... 35 4.6. Inline-areas ................................................................................................................................. 36 4.6.1. Stacked Inline-areas ......................................................................................................... 37 4.6.2. Glyph-areas ...................................................................................................................... 37 4.7. Ordering Constraints .................................................................................................................. 38 4.7.1. General Ordering Constraints ........................................................................................... 38 Extensible Stylesheet Language (XSL) iv 4.7.2. Line-building .................................................................................................................... 38 4.7.3. Inline-building .................................................................................................................. 39 4.8. Keeps and Breaks ....................................................................................................................... 40 4.9. Rendering Model ....................................................................................................................... 41 4.9.1. Geometry .......................................................................................................................... 41 4.9.2. Viewport Geometry .......................................................................................................... 41 4.9.3. Visibility ........................................................................................................................... 42 4.9.4. Border, Padding, and Background ...................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    514 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us