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
|
<xsl:template match="Node">
<Item Caption="{Caption}">
<xsl:attribute name="ImagePath">
<xsl:choose>
<xsl:when test="@Path = 'Pictos'">
<xsl:value-of select="$XMLC_PictosPath"/>
</xsl:when>
<xsl:when test="@Path = 'Skin'">
<xsl:value-of select="$XMLC_SkinPath"/>
</xsl:when>
<xsl:when test="@Path = 'Skin'">
<xsl:value-of select="$XMLC_Portal"/>
</xsl:when>
</xsl:choose>
<xsl:value-of select="Image"/>
</xsl:attribute>
<xsl:attribute name="HRef">
<xsl:if test="(@Alias) and (@Alias != '')">
<xsl:value-of select="/document/Aliases/*[name() = @Alias]"/>
</xsl:if>
<xsl:value-of select="Image"/>
</xsl:attribute>
<xsl:if test="(Target) and (Target != '')">
<xsl:attribute name="Target">
<xsl:value-of select="Target"/>
</xsl:attribute>
</xsl:if>
<!-- Recursion pour la hiérarchie -->
<xsl:apply-template match="Node"/>
</Item>
</xsl:template> |