the1900
0
Q:

xsl comment faire increment un élément

 <!-- XML -->
 <AAA>
   <BBB>10</BBB>
   <BBB>5</BBB>
   <BBB>7</BBB>
 </AAA>
 
 <!-- XSL -->
 <xsl:template match = "BBB" >
   <xsl:text>BBB[</xsl:text>
   <xsl:value-of select = "position()"/>
   <xsl:text>]: </xsl:text>
   <xsl:value-of select = "."/>
 </xsl:template>
 
 <!-- Output -->
  BBB[1]: 10
  BBB[2]: 5
  BBB[3]: 7
0

New to Communities?

Join the community