Hello !
I have a XML file like this :
<par><title id="456">This Title has for id 456</title>
<bodypar>some text</bodypar></par>
and other titles with others ids.
In my XSL file, I want to make something like :
<xsl:for-each select="par">
<input type="text">
<xsl:attribute name="value">
<xsl:value-of select="titre"/>
</xsl:attribute>
<xsl:attribute name="name">
titre<xsl:value-of select="titre.[@id]"/>
</xsl:attribute>
</input><br/>
...
to finaly get somthing like :
<input type="text" value="This Title has for id 456" name="titre456">
What can I put instead of titre<xsl:value-of select="titre.[@id]"/> to have it working ?
Thank you,
Gaelle.
I have a XML file like this :
<par><title id="456">This Title has for id 456</title>
<bodypar>some text</bodypar></par>
and other titles with others ids.
In my XSL file, I want to make something like :
<xsl:for-each select="par">
<input type="text">
<xsl:attribute name="value">
<xsl:value-of select="titre"/>
</xsl:attribute>
<xsl:attribute name="name">
titre<xsl:value-of select="titre.[@id]"/>
</xsl:attribute>
</input><br/>
...
to finaly get somthing like :
<input type="text" value="This Title has for id 456" name="titre456">
What can I put instead of titre<xsl:value-of select="titre.[@id]"/> to have it working ?
Thank you,
Gaelle.