1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xalan="http://xml.apache.org/xslt">
<xsl:template match="/">
<root>
<xsl:apply-templates />
</root>
</xsl:template>
<xsl:template match="bidul">
<!-- Commentaire : mettre infos -->
<BIDULE>
<xsl:apply-templates select="truc" />
</BIDULE>
</xsl:template>
<xsl:template match="truc">
Attribut = <xsl:value-of select="@desc" />
<br/>
Sequence du truc :
<xsl:value-of select="seq" />
<br/>
Numero du truc :
<xsl:value-of select="num" />
<br/>
----------------
<br/>
</xsl:template>
</xsl:stylesheet> |