Answers for "xsl comment faire increment un élément"

0

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
Posted by: Guest on November-30-2020

Code answers related to "xsl comment faire increment un élément"

Browse Popular Code Answers by Language