XSLT

XSLT

Extensible Stylesheet Language Transformations

XSL Transformations

Extension de fichier

.xsl, .xslt

Type MIME

application/xslt+xml[1]

Développé par

World Wide Web Consortium

Type de format

Langage de feuille de style

Extension du

XML

Standard(s)

1.0 (Recommandation du 16 novembre 1999),

2.0 (Recommandation du 23 janvier 2007)

XSLT (eXtensible Stylesheet Language Transformations), défini au sein de la recommandation XSL du W3C, est un langage de transformation XML de type fonctionnel.

Sommaire

Description

Les flux d'une transformation XSLT.

L'objectif principal est la transformation d'un document XML vers un autre, ou un dialecte XML (XHTML, XSL-FO, HTML, etc.). Cependant, le langage XSLT permet aussi les transformations vers tout autre type de document, au format texte ou dans un format binaire (bien que ceci ne soit pas nativement prévu par la recommandation XSLT).

XSLT s'appuie sur XPath (une autre partie de la recommandation XSL) pour désigner une partie d'un arbre XML. XSLT est lui-même un dialecte XML. Un programme XSLT est donc, avant tout, un document XML :

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml" indent="yes"/> 
 
<xsl:template match="person">
    <name username="{@username}">
       <xsl:value-of select="name" />
    </name>
</xsl:template>
 
</xsl:stylesheet>

L'une de ses principales particularités est d'être centré sur les données. Un XSLT doit s'appuyer sur un XML, c'est un couple obligatoire, et on ne peut créer en XSLT que des boucles parcourant des données sélectionnées par XPath .

Implémentations

  • Saxon : Par Michael Kay, Saxon existe en Java pour XSLT 1.0 et en Java et .Net pour XSLT 2.0
  • Libxslt : Par GNOME, libxslt est une implémentation en C de XSLT 1.0
  • Gestalt : Par Colin Paul Adams, Gestalt est une implémentation en Eiffel de XSLT 2.0
  • AltovaXML : Par Altova, AltovaXML est une implémentation gratuite de XSLT 1.0 et XSLT 2.0

Voir aussi

Articles connexes

Références

Liens externes

  • Portail de l’informatique Portail de l’informatique
Ce document provient de « Extensible Stylesheet Language Transformations ».

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article XSLT de Wikipédia en français (auteurs)

Игры ⚽ Нужно сделать НИР?

Regardez d'autres dictionnaires:

  • XSLT — (eXtensible Stylesheet Language Transformations)  язык преобразования XML документов. Спецификация XSLT входит в состав XSL и является рекомендацией W3C. При применении таблицы стилей XSLT, состоящей из набора шаблонов, к XML документу… …   Википедия

  • Xslt — (Extensible Stylesheet Language Transformations) часть спецификации XML документов. Спецификация XSLT является рекомендацией W3C. При применении таблицы стилей XSLT, состоящей из набора шаблонов, к XML документу (исходное дерево) образуется… …   Википедия

  • XSLT — o XSL Transformaciones es un estandar de la organización W3C que presenta una forma de transformar documentos XML en otros e incluso a formatos que no son XML. Las hojas de estilo XSLT realizan la transformación del documento utilizando una o… …   Enciclopedia Universal

  • XSLT — Vorlage:Infobox Dateiformat/Wartung/magic fehltVorlage:Infobox Dateiformat/Wartung/website fehlt XSL Transformations Dateiendung .xsl …   Deutsch Wikipedia

  • Xslt — Vorlage:Infobox Dateiformat/Wartung/magic fehltVorlage:Infobox Dateiformat/Wartung/website fehlt XSL Transformations Dateiendung .xsl …   Deutsch Wikipedia

  • XSLT-Prozessor — Ein XSLT Prozessor ist eine Software zum Umwandeln von Dokumenten mittels eines XSLT Stylesheets. Das Ergebnis ist ein neues Dokument, das (z. B. als DOM Objekt) direkt weiterverarbeitet oder in eine Datei ausgegeben werden kann. Der XSLT… …   Deutsch Wikipedia

  • XSLT (langage) — Extensible Stylesheet Language Transformations XSL Transformations Extension de fichier .xsl, .xslt Type MIME application/xslt+xml[1] Développé par …   Wikipédia en Français

  • XSLT elements — This article lists some of the elements used in XSLT.XSLT logic elementsFunctions defined by XSLTThe following functions can occur in many XSLT attributes, such as xsl:value of.select and xsl:for each.select.External links*… …   Wikipedia

  • XSLT — Extensible Stylesheet Language Transformation (Computing » Software) Extensible Stylesheet Language Transformation (Computing » General) Extensible Stylesheet Language Transformation (Internet) Extensible Stylesheet Language Transformation… …   Abbreviations dictionary

  • XSLT — eXtensible Stylesheet Language Transformation …   Acronyms

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”