Mastering XSLT and DOM Technologies for XML Transformations
Explore the power of XSLT and DOM technologies for efficient XML transformations. Learn about stylesheet programming, simple API for XML (SAX), Document Object Model principles, and declarative-based transformations. Get insights into XSL, XSLFO, and programming-free document processing.
Mastering XSLT and DOM Technologies for XML Transformations
E N D
Presentation Transcript
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) • Pagination-based Presentation • XSL Formatting Objects (XSLFO) • Document Style and Semantics Specifications Language (DSSSL)
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
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
Stylesheet XSL XML Result Node Tree Source Source Node Tree XML XSLFO InstructionExecution HTML Non-XML XSL Processor XSLT Processing Result
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
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
Sources • “XML and Stylesheets”, G. Ken Holman, presentation at XML One Conference, Chicago, IL, May, 2001.