Professional Documents
Culture Documents
XSLT
XSLT
Dr Ouanes AISSAOUI
Academic year: 2023-2024
Chapitre 3 : Technologies XML (40%)
1. XPath
2. XSLT
3. Applications XML : SVG,RDF
4. Traitement: DOM et SAX
5. Les pointeurs: XPOINTER
6. Les liens: XLINK
XSLT: Transforming XML Files
1. Principle
2. Basic rules
3. Construction of the result document
4. Iterative and conditional structures
5. Variables XSL
6. Parameterized rules, and with names
Introduction
• XSL = XML Stylesheet Language
• XSL is a style sheet language.
• XSL allows to define style sheets for XML
documents in the same way as CSS for HTML.
• XSLT-1.0 is a W3C Recommendation composed
of:
▫ XSLT: A Language of Transformation
▫ XPath: already studied, node selection
▫ XSL-FO: A set of XML formatting instructions for
presentation
• Example :
<xsl:element name="p"><xsl:value-of select=“//param" />
</xsl:element>
• Creates a "p" tag containing the text present in the
"param" element of the original document.
• Example :
<xsl:element name="image">
<xsl:attribute name="src">
<xsl:value-of select=”@adresse”/>
</xsl:attribute>
....
</xsl:element>
o.aissaoui@univ-soukaharas.dz
ouanes.aissaoui@gmail.com