Exemples de programme XSLT

Titre Source XML Programme XSLT Résultat Schéma
Hello, World! helloworld.xml helloworld.xsl helloworld.html helloworld.xsd
Hello, World! en SVG helloworld.xml helloinsvg.xsl helloworld.svg helloworld.xsd
Bonjour! en SVG bonjour.xml helloinsvg.xsl bonjour.svg helloworld.xsd
Programme minimal bibliography.xml minimal.xsl minimal.txt
Sortie text bibliography.xml text-output.xsl text-output.txt
Substitution des entités entities.xml entities.xsl helloworld.xsd
Commentaires helloworld.xml comment.xsl comment.html helloworld.xsd
Liste bibliography.xml list.xsl list.html bibliography.xsd
Liste triée avec xsl:sort bibliography.xml sorted-list.xsl sorted-list.html bibliography.xsd
Listes par langues avec xsl:apply-templates bibliography.xml lang-list.xsl lang-list.html bibliography.xsd
Table avec xsl:for-each bibliography.xml table.xsl table.html bibliography.xsd
Liste par année avec xsl:for-each-group bibliography.xml year-list.xsl year-list.html bibliography.xsd
HTML → DocBook avec xsl:for-each-group html2dbk.html html2dbk.xsl html2dbk.xml
Conversion de l'attribut lang en élément bibliography.xml att2elem.xsl att2elem.xml bibliography.xsd
Feuille de style attachée styled-biblio.xml list.xsl list.html bibliography.xsd
Accolades dans les attributs braces.xml braces.xsl
Formats de xsl:number helloworld.xml format.xsl format.txt helloworld.xsd
Modes helloworld.xml modes.xsl modes.txt helloworld.xsd
Livre book.xml book.xsl book.html book.xsd
Table des matières book.xml booktoc.xsl booktoc.html book.xsd
Références book.xml bookref.xsl bookref.html book.xsd
Numérotation (level="single") number.xml number1.xsl number1.xml number.xsd
Numérotation (level="multiple") number.xml number2.xsl number2.xml number.xsd
Numérotation (level="any") number.xml number3.xsl number3.xml number.xsd
Numérotation (level="any" et from) number.xml number4.xsl number4.xml number.xsd
Numérotation (avec value) number.xml number5.xsl number5.xml number.xsd
Déclarations de variables helloworld.xml variable.xsl 1 4 9 16 25 1 8 27 64 125 helloworld.xsd
Utilisation de perform-sort helloworld.xml perform.xsl 0,1,3,5 helloworld.xsd
Passage de paramètres helloworld.xml param.xsl param.xml helloworld.xsd
Nombres de Fibonacci fibonacci.xml fibonacci.xsl fibonacci.html fibonacci.xsd
Variables tunnel helloworld.xml tunnel.xsl tunneldefault helloworld.xsd
Manipulation des espaces de noms namespace.xml namespace.xsl
Définitions de fonctions d'URL helloworld.xml urls.xsl urls.txt helloworld.xsd
Fonction get-id get-id.xml get-id.xsl
Surcharge de fonction overload.xml overload.xsl
Documents multiples cityfiles.xml
europa.xml
states.xml
cityfiles.xsl cityfiles.html
sorted.xml
Fonction XPath tokenize helloworld.xml tokenize.xsl tokenize.txt helloworld.xsd
Élément xsl:analyze-string analyse-string.xml analyse-string.xsl