xslt attributes
Posted: Mon Oct 03, 2005 6:34 pm
Hi, I have an xml file. I am trying to get the data from this by using the xslt.
my xml is as follows,
xml
<code>898</code>
<name>ndskdj</name>
---
<xsl:template match="tlkpSpec">
<!-- <code><xsl:apply-templates select="LOC"/></code> -->
<!-- <name><xsl:apply-templates select="NAME"/></name> -->
<Lookup value="should put code value here"> <xsl:apply-templates select="SPECIAL"/></Lookup>
</xsl:template>
</xsl:stylesheet>
--
The problem is is that i need to take the value of code and place it into my lookup value?. Is there a way of doing this. Alternativley, i need to create an incrementing number for each value. Please can someone help?.
Thanks
my xml is as follows,
xml
<code>898</code>
<name>ndskdj</name>
---
<xsl:template match="tlkpSpec">
<!-- <code><xsl:apply-templates select="LOC"/></code> -->
<!-- <name><xsl:apply-templates select="NAME"/></name> -->
<Lookup value="should put code value here"> <xsl:apply-templates select="SPECIAL"/></Lookup>
</xsl:template>
</xsl:stylesheet>
--
The problem is is that i need to take the value of code and place it into my lookup value?. Is there a way of doing this. Alternativley, i need to create an incrementing number for each value. Please can someone help?.
Thanks