hiya,
i have an xml doc, and I'd like to assign lookup values.
Eg, if the "PRODUCT-TYPE" is 6, then I insert "bike" into the innerText.
<code>
<rows>
<row>
<PRODUCT-TYPE>6</PRODUCT-TYPE>
<PRODUCT-DATE>01/01/2003</PRODUCT-DATE>
</row>
<row>
<PRODUCT-TYPE>7</PRODUCT-TYPE>
<PRODUCT-DATE>01/01/2004</PRODUCT-DATE>
</row>
</rows>
<code>
XSLT:
<code>
<xsl:for-each select="PRODUCT-TYPE">
<xsl:when test="@'PRODUCT-TYPE'">
<xsl:choose> <xsl:when test=".='6'">Bike</xsl:when>
<xsl:when test=".='7'">Car</xsl:when>
<xsl:when test=".='1'">Van</xsl:when>
<xsl:otherwise>UNDEFINED</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</code>
I get the error that "stylesheet wouldn't load".
Any ideas?I think that my syntax near the following lines might be wrong.
<xsl:for-each select="PRODUCT-TYPE">
<xsl:when test="@'PRODUCT-TYPE'">
Can anyone help offer a 2nd pair of eyes?
many thanks,
yogi
--
Message posted via http://www.dotnetmonster.com