11.07.2015 Views

Référence XPath/XSLT - IA

Référence XPath/XSLT - IA

Référence XPath/XSLT - IA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Philippe RigauxUniversité Paris-SudAvant-proposIntroduction à XML/<strong>XSLT</strong>Documents XML : Structure et navigationDOM<strong>XPath</strong>Programmation <strong>XSLT</strong><strong>XSLT</strong>Le programme suivant affiche tous les titres des chapitres du livre en les classant en trois catégories :chapitres « courts », « moyens » et « longs ». Le classement s’effectue en fonction de la valeur de l’attributLONGUEUR de chaque chapitre.Exemple .10 RefChoose.xsl : Exemple d’utilisation de xsl:chooseLe chapitre "" est courtLa longueur du chapitre "" est moyenLe chapitre "" est longLe chapitre ""n’est ni court, ni moyen, ni long !9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!