Take value from attribute using xslt

smile

New Member
input.xml:\[code\]<comp> <link id="#c1-tbl-0001"/></comp>\[/code\]output.xml:\[code\]<comp> <link newid="#c1-tbl-0001"/><tableno>1.1</tableno></comp>\[/code\]i need the value for tableno from attribute value like 1 from tb1 and another 1 from 0001. so the ouput should be 1.1i used the following xsl but it's not gives the exact result.\[code\] <xsl:element name ="tableno"> <xsl:value-of select ="substring(@id,7)"/>.<xsl:value-of select="substring(@id,12)"/></xsl:element>\[/code\]
 
Back
Top