


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Xslt (extensible stylesheet language transformations) is a language for transforming xml documents into other formats such as xml, html, or plain text. An introduction to xslt, its components, and how to write xslt templates to transform xml documents. It covers topics such as xslt processors, xslt programs, input and output xml, xslt elements, and xslt examples.
Typology: Slides
1 / 4
This page cannot be seen from the preview
Don't miss anything!



3
XSLT processor
XSLT program
Input XML Output XML Actually, output does not need to be in XML in general
4
5
6
Standard header of an XSLT document
is the basic XSLT construct describing a transformation rule match_expr is an XPath-like expression specifying which nodes this rule applies to
evaluates xpath_expr within the context of the node matching the template, and converts the result node-set to a string
and simply get copied to the output for each node match
Foundations of Databases Abiteboul Hull Vianu Addison Wesley 1995 ……
A First Course in Databases Ullman Widom Prentice-Hall 2002 ……
Template applies
Foundations of Databases
Template does not apply; default behavior is to process the node recursively and print out all text nodes A First Course in Databases Ullman Widom Prentice-Hall 2002 … …
9
10
… …
… …
… …
… …
body adds an attributed named attr with value body to the parent element in the output
11
12
Render a book title in italics in HTML Render the authors as a comma-separated list
1]”> ,
:
21
Well-formed XML: syntactically correct Valid XML: well-formed and conforms to a DTD
An XPath expression selects a list of nodes in an XML document Used in other languages
FLWOR expression, quantified expression, aggregation, etc.
Transforms input XML by applying template rules recursively on the structure of input XML