1 / 8

XML Transformations

XML Transformations. Eugenia Fernandez IUPUI. Stylesheet Technologies. Browser-based Presentation HTML Cascading Stylesheets Programming-based Transformation Simple API for XML (SAX) Document Object Model (DOM) Declarative-based Transformation XSL Transformations (XSLT)

foy
Télécharger la présentation

XML Transformations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML Transformations Eugenia Fernandez IUPUI

  2. Stylesheet Technologies • Browser-based Presentation • HTML • Cascading Stylesheets • Programming-based Transformation • Simple API for XML (SAX) • Document Object Model (DOM) • Declarative-based Transformation • XSL Transformations (XSLT) • Pagination-based Presentation • XSL Formatting Objects (XSLFO) • Document Style and Semantics Specifications Language (DSSSL)

  3. XSLT XSL XSLFO XSL: XSLT and XSLFO • XSL – Extensible Stylesheet Language • XSLT – XSL Transformations • vocabulary for transforming XML instances into other vocabularies • XSLFO – XSL Formatting Objects • vocabulary for paginated formatting of information • Technically, XSL = XSLFO but more commonly used as

  4. XSLT Stylesheets & DTDs • Independent of any DTD • XSLT processor can process well-formed XML documents without a DTD • one stylesheet can process multiple instances of a DTD • different stylesheets can process a given XML document to produce different results

  5. Stylesheet XSL XML Result Node Tree Source Source Node Tree XML XSLFO InstructionExecution HTML Non-XML XSL Processor XSLT Processing Result

  6. Simple API for XML (SAX) • stream-oriented, platform- and language-independent specification of functions that allow programs to process XML • SAX Principles • document is ordered series of events • XML processor generates events • application writes handlers for each event • Plus/Minus • + fast transformation • - programming needed • - changes in document require changes in program

  7. Document Object Model (DOM) • tree-oriented, platform- and language-neutral programming interface • DOM principles • implements transformation by code • models objects for XML and HTML • standard interface for manipulating the objects

  8. Sources • “XML and Stylesheets”, G. Ken Holman, presentation at XML One Conference, Chicago, IL, May, 2001.

More Related