hi
i wish to transform from xml to xml and i'm using the following to code to output to each instance of the element
code:
--------------------------------------------------------------------------------
<age> <xsl:attribute name="range"> <xsl:for-each select="users/user"> <xsl:value-of select="age_x0020_range"/> </xsl:for-each> </xsl:attribute> </age>
--------------------------------------------------------------------------------
the problem is its outputting everything within the same tags like so, so that its repeating the value within the same element and not creating lots of seperate elements, each with their own value.
code:
--------------------------------------------------------------------------------
<age range="TEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEE/>
--------------------------------------------------------------------------------
what is the xpath error i'm making ?
cheers
chris
i wish to transform from xml to xml and i'm using the following to code to output to each instance of the element
code:
--------------------------------------------------------------------------------
<age> <xsl:attribute name="range"> <xsl:for-each select="users/user"> <xsl:value-of select="age_x0020_range"/> </xsl:for-each> </xsl:attribute> </age>
--------------------------------------------------------------------------------
the problem is its outputting everything within the same tags like so, so that its repeating the value within the same element and not creating lots of seperate elements, each with their own value.
code:
--------------------------------------------------------------------------------
<age range="TEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEETEE/>
--------------------------------------------------------------------------------
what is the xpath error i'm making ?
cheers
chris