Using variables within XSL Output
Posted on 2003-10-28
I would ask this directly in the XML section but the link doesnt appear to be working.
I have the following piece of XSL code which embeds an SVG image within my document:
<embed height="163.8" width="172.20">
<xsl:attribute name="src"><xsl:value-of select="//XSLPath"/>media/svg/feet_XSL.svg</xsl:attribute> </embed>
I need to change the name of the embed (SVGDiagram) to unique identifiers e.g. append a 1,2 etc. so the embed name would be SVGDiagram1, SVGDiagram2 etc.
I believe this may be possible through using the tag <xsl:variable within the attribute tag, or by using some script within CDATA sections. Can anyone shed any light?