Extensible Stylesheet Language - XSL-FO, XML to PDF ... Stylesheet Language In computing, the Extensible Stylesheet Language (XSL), a family of transformation lan-guages, allows one to describe how to format or ...

  • Published on
    19-Feb-2018

  • View
    212

  • Download
    0

Transcript

  • Extensible Stylesheet Language

  • Extensible Stylesheet Language

    http://en.wikipedia.org/wiki/Extensible_Stylesheet_Language

    This Book Is Generated By WikiType

    using

    RenderX DiType, XML to PDF XSL-FO Formatter

    Permission is granted to copy, distribute and/or modify this document under the terms of the GNUFree Documentation License, Version 1.2 or any later version published by the Free Software

    Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy ofthe license is included in the section entitled "GNU Free Documentation License".

    29 September 2008

    http://en.wikipedia.org/wiki/Extensible_Stylesheet_Languagehttp://dash-of-pepper.com/wikitypehttp://www.renderx.comhttp://www.renderx.net

  • Table of Contents

    1. Extensible Stylesheet Language..............................................4History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    "XSL" in Microsoft products. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    The XSL family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    XSL Transformations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    XSL Formatting Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

    XPath. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    See also. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    External links. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

    GNU Free Documentation License. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8

    List of Contributors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16

    Extensible Stylesheet Language

    - 3 -

    by , XML to PDF XSL-FO Formatter

  • Extensible Stylesheet Language

    In computing, the Extensible Stylesheet Language (XSL), a family of transformation lan-guages, allows one to describe how to format or transform files encoded in the XML standard.The XSL language itself uses valid XML syntax, with constructs such as:

    Hello Mrs. Jones!

    The start-tag and end-tag of every statement echo the syntax of the opening and closingparenthesis of Lisp. The designers of XSL wanted a data driven language: it strongly encouragesthe inversion of control design pattern. The language assumes the processing of an XML file asa tree to produce a text-based output document, generally HTML, XML, plain-text, or PDF. XSLprogrammers can declare variables, but not change their values. The language provides severaldata-driven looping constructs, but programmers can still construct arbitrary loops without alter-ing any variables by using recursion (as in Scheme).

    The XSL family comprises three languages:

    1. XSL Transformations (XSLT): an XML language for transforming XML documents2. XSL Formatting Objects (XSL-FO): an XML language for specifying the visual format-

    ting of an XML document3. the XML Path Language (XPath): a non-XML language used by XSLT, and also

    available for use in non-XSLT contexts, for addressing the parts of an XML document.

    W3C recommendations specify each of the three languages.

    Early Working Drafts that preceded the XSLT Recommendation didn't have the "T" at theend of XSLT; they used the term XSL instead; and the language included rudiments of what laterbecame XPath.

    History

    XSL began as an attempt to bring the functionality of DSSSL, particularly in the area ofprint and high-end typesetting, to XML.

    Extensible Stylesheet Language

    - 4 -

    by , XML to PDF XSL-FO Formatter

    http://en.wikipedia.org/wiki/Computinghttp://en.wikipedia.org/wiki/Transformation_languagehttp://en.wikipedia.org/wiki/Transformation_languagehttp://en.wikipedia.org/wiki/XMLhttp://en.wikipedia.org/wiki/Lisp_%28programming_language%29http://en.wikipedia.org/wiki/Data_drivenhttp://en.wikipedia.org/wiki/Inversion_of_controlhttp://en.wikipedia.org/wiki/Design_patternhttp://en.wikipedia.org/wiki/Tree_%28data_structure%29http://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/Plain-texthttp://en.wikipedia.org/wiki/Portable_Document_Formathttp://en.wikipedia.org/wiki/Control_flow#Loopshttp://en.wikipedia.org/wiki/Recursion_%28computer_science%29http://en.wikipedia.org/wiki/Scheme_%28programming_language%29http://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/XMLhttp://en.wikipedia.org/wiki/XSL_Formatting_Objectshttp://en.wikipedia.org/wiki/XMLhttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/W3C_recommendationhttp://en.wikipedia.org/wiki/W3C_Working_Drafthttp://en.wikipedia.org/wiki/Document_Style_Semantics_and_Specification_Languagehttp://en.wikipedia.org/wiki/Typesetting

  • A W3C working group on CSS XSL started operating in December 1997, with Sharon Adlerand Steve Zilles as co-chairs, with James Clark acting as editor (and unofficially as chief design-er), and Chris Lilley as the W3C staff contact. The group released a first public Working Drafton 18 August 1998. XSLT and XPath became W3C Recommendations on 16 November 1999and XSL-FO reached Recommendation status on 15 October 2001.

    "XSL" in Microsoft products

    Microsoft's MSXML, first released in March 1999, contained an incomplete implementationof the December 1998 Working Draft of XSL. Since the mid-2000 release of MSXML 3.0,MSXML has had complete support for both XSLT 1.0 and the older dialect. MSXML 3.0 becamethe default XML services library of Internet Explorer (IE) upon the release of IE 6.0 in August2001. Older versions of IE could use MSXML 3.0 only with a custom install in "replace mode".

    Some commentators[who?] use the term "XSL" to refer to the dialect described in the WorkingDraft and as implemented in MSXML, including MSXML-specific extensions and omissions.

    Other commentators[who?] generally refer to it as WD-xsl.

    The XSL family

    XSL Transformations

    Main article: XSL Transformations

    XSL Transformations (XSLT) currently has many implementations available. Several webbrowsers, including Internet Explorer (using the MSXML engine), Firefox, Mozilla, and Netscape(all using the TransforMiiX engine), and Opera (native engine), all support transformation ofXML to HTML through XSLT. Other notable implementations include Saxon and Xalan.

    XSL Formatting Objects

    Main article: XSL Formatting Objects

    Extensible Stylesheet Language

    - 5 -

    by , XML to PDF XSL-FO Formatter

    http://en.wikipedia.org/wiki/Working_grouphttp://en.wikipedia.org/w/index.php?title=Sharon_Adler&action=edit&redlink=1http://en.wikipedia.org/w/index.php?title=Steve_Zilles&action=edit&redlink=1http://en.wikipedia.org/wiki/James_Clark_%28XML_expert%29http://en.wikipedia.org/wiki/Chris_Lilley_%28W3C%29http://en.wikipedia.org/wiki/August_18http://en.wikipedia.org/wiki/November_16http://en.wikipedia.org/wiki/1999http://en.wikipedia.org/wiki/October_15http://en.wikipedia.org/wiki/2001http://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/MSXMLhttp://en.wikipedia.org/wiki/Library_%28computing%29http://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/Wikipedia:Avoid_weasel_wordshttp://en.wikipedia.org/wiki/Wikipedia:Avoid_weasel_wordshttp://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/As_of_2008http://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Web_browserhttp://en.wikipedia.org/wiki/Internet_Explorerhttp://en.wikipedia.org/wiki/MSXMLhttp://en.wikipedia.org/wiki/Mozilla_Firefoxhttp://en.wikipedia.org/wiki/Mozillahttp://en.wikipedia.org/wiki/Netscape_%28web_browser%29http://en.wikipedia.org/wiki/TransforMiiXhttp://en.wikipedia.org/wiki/Opera_%28web_browser%29http://en.wikipedia.org/wiki/Saxon_XSLThttp://en.wikipedia.org/wiki/Xalanhttp://en.wikipedia.org/wiki/XSL_Formatting_Objects

  • Support for XSL Formatting Objects has become more widespread as of late:

    the XEP package from RenderX has near 100% support for XSL-FO 1.0 XSLFormatter from Antenna House also has near 100% support for the XSL-FO 1.0

    specification and has 100% support for all new features within the XSL-FO 1.1 specifi-cation

    XINC from Lunasil has a great amount of support for the XSL-FO 1.0 specification FOP from the Apache project can render a portion of the XSL formatting objects 1.0

    specification to PDF

    XSL Formatting Objects support other file formats to varying degrees:

    PostScript SVG MIF PCL text files

    XPath

    Main article: XPath

    XML Path Language (XPath), itself part of the XSL family, functions within XSLT as ameans of navigating an XML document.

    Another W3C project, XQuery, aims to provide similar capabilities for querying XML docu-ments using XPath.

    See also

    List of stylesheet languages Comparison of stylesheet languages

    Extensible Stylesheet Language

    - 6 -

    by , XML to PDF XSL-FO Formatter

    http://en.wikipedia.org/wiki/As_of_2008http://www.renderx.com/tools/xephttp://www.renderx.comhttp://www.antennahouse.com/http://www.lunasil.com/http://en.wikipedia.org/wiki/FOPhttp://en.wikipedia.org/wiki/Apache_Software_Foundationhttp://en.wikipedia.org/wiki/Portable_Document_Formathttp://en.wikipedia.org/wiki/File_formathttp://en.wikipedia.org/wiki/PostScripthttp://en.wikipedia.org/wiki/Scalable_Vector_Graphicshttp://en.wikipedia.org/wiki/Maker_Interchange_Formathttp://en.wikipedia.org/wiki/Printer_Control_Languagehttp://en.wikipedia.org/wiki/Text_filehttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/XML_documenthttp://en.wikipedia.org/wiki/W3Chttp://en.wikipedia.org/wiki/XQueryhttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/List_of_stylesheet_languageshttp://en.wikipedia.org/wiki/Comparison_of_stylesheet_languages

  • External links

    XSL language definition. Extensible Stylesheet Language Holman, G. Ken (2002-03-20). "What is XSL-FO". XML.com. O'Reilly Media, Inc..

    Retrieved on 2008-09-01. XML Focus Topics : CSS, XSL, XSL-FO IBM XSL Formatting Objects Composer W3schools XSL Tutorial

    v d e

    XSLT (elements) XSL-FO XPath

    v d eStandards of the WorldWide Web Consortium

    Canonical XML CDF CSS DOM HTML MathML OWL PLS RDF RDF Schema SISR SMIL SOAP SRGS

    Recommendations

    SSML SVG SPARQL Timed Text VoiceXML WSDL XForms XHTML XML XML Base XML Events XMLInformation Set XML Schema (W3C) XML Signature XPath XPointer XQuery XSL Transformations XSL-FO XLink

    XHTML+SMIL XAdESNotes

    CCXML CURIE InkML XFrames XFDL WICD XHTML+MathML+SVG XBL XProc HTML 5

    Working Drafts

    Extensible Stylesheet Language

    - 7 -

    by , XML to PDF XSL-FO Formatter

    http://www.w3.org/Style/XSL/http://xml.coverpages.org/xsl.htmlhttp://en.wikipedia.org/wiki/2002http://en.wikipedia.org/wiki/March_20http://www.xml.com/pub/a/2002/03/20/xsl-fo.html?page=1http://en.wikipedia.org/wiki/2008http://en.wikipedia.org/wiki/September_1http://www.xml.org/xml/resources_focus_cssxslfo.shtmlhttp://alphaworks.ibm.com/tech/xfchttp://www.w3schools.com/xsl/http://en.wikipedia.org/wiki/Template:XSLhttp://en.wikipedia.org/w/index.php?title=Template_talk:XSL&action=edit&redlink=1http://en.wikipedia.org/w/index.php?title=Template:XSL&action=edithttp://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/XSLT_elementshttp://en.wikipedia.org/wiki/XSL_Formatting_Objectshttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/Template:W3C_standardshttp://en.wikipedia.org/wiki/Template_talk:W3C_standardshttp://en.wikipedia.org/w/index.php?title=Template:W3C_standards&action=edithttp://en.wikipedia.org/wiki/World_Wide_Web_Consortiumhttp://en.wikipedia.org/wiki/World_Wide_Web_Consortiumhttp://en.wikipedia.org/wiki/Canonical_XMLhttp://en.wikipedia.org/wiki/Compound_Document_Formathttp://en.wikipedia.org/wiki/Cascading_Style_Sheetshttp://en.wikipedia.org/wiki/Document_Object_Modelhttp://en.wikipedia.org/wiki/HTMLhttp://en.wikipedia.org/wiki/MathMLhttp://en.wikipedia.org/wiki/Web_Ontology_Languagehttp://en.wikipedia.org/wiki/Pronunciation_Lexicon_Specificationhttp://en.wikipedia.org/wiki/Pronunciation_Lexicon_Specificationhttp://en.wikipedia.org/wiki/Resource_Description_Frameworkhttp://en.wikipedia.org/wiki/RDF_Schemahttp://en.wikipedia.org/wiki/Semantic_Interpretation_for_Speech_Recognitionhttp://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Languagehttp://en.wikipedia.org/wiki/SOAPhttp://en.wikipedia.org/wiki/Speech_Recognition_Grammar_Specificationhttp://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Languagehttp://en.wikipedia.org/wiki/W3C_recommendationhttp://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Languagehttp://en.wikipedia.org/wiki/Scalable_Vector_Graphicshttp://en.wikipedia.org/wiki/SPARQLhttp://en.wikipedia.org/wiki/Timed_Texthttp://en.wikipedia.org/wiki/VoiceXMLhttp://en.wikipedia.org/wiki/Web_Services_Description_Languagehttp://en.wikipedia.org/wiki/XFormshttp://en.wikipedia.org/wiki/XFormshttp://en.wikipedia.org/wiki/XHTMLhttp://en.wikipedia.org/wiki/XMLhttp://en.wikipedia.org/wiki/XML_Basehttp://en.wikipedia.org/wiki/XML_Eventshttp://en.wikipedia.org/wiki/XML_Information_Sethttp://en.wikipedia.org/wiki/XML_Information_Sethttp://en.wikipedia.org/wiki/XML_Schema_%28W3C%29http://en.wikipedia.org/wiki/XML_Signaturehttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/XPathhttp://en.wikipedia.org/wiki/XPointerhttp://en.wikipedia.org/wiki/XQueryhttp://en.wikipedia.org/wiki/XSL_Transformationshttp://en.wikipedia.org/wiki/XSL_Formatting_Objectshttp://en.wikipedia.org/wiki/XLinkhttp://en.wikipedia.org/wiki/XLinkhttp://en.wikipedia.org/wiki/XHTML+SMILhttp://en.wikipedia.org/wiki/XAdEShttp://en.wikipedia.org/wiki/Call_Control_eXtensible_Markup_Languagehttp://en.wikipedia.org/wiki/CURIEhttp://en.wikipedia.org/wiki/InkMLhttp://en.wikipedia.org/wiki/XFrameshttp://en.wikipedia.org/wiki/Extensible_Forms_Description_Languagehttp://en.wikipedia.org/wiki/Web_Integration_Compound_Documenthttp://en.wikipedia.org/wiki/XHTML+MathML+SVGhttp://en.wikipedia.org/wiki/XHTML+MathML+SVGhttp://en.wikipedia.org/wiki/XBLhttp://en.wikipedia.org/wiki/XProchttp://en.wikipedia.org/wiki/HTML_5

  • GNU Free Documentation License

    Version 1.2, November 2002

    Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USAEveryone is permitted to copy and distribute verbatim copiesof this license document, but changing it is not allowed.

    0. PREAMBLE

    The purpose of this License is to make a manual, textbook, or other func...

Recommended

View more >