Hi,
I'm having huge trouble with some XSL.
I'm trying to output XML with alternate lines coloured differently... so far I've got this:
<xsl:variable name="row-number" select="position()"/>
<tr class="
<xsl:choose>
<xsl:when test="$row-number mod 2 = 0">darkrow</xsl:when>
<xsltherwise>lightrow</xsltherwise>
</xsl:choose>">
can anyone tell me what I'm doing wrong... the error is:
The character '<' cannot be used in an attribute value
This is the first XSL I've written and I'm picking it up as I go along from the net... be gentle!
thanks
Emma
I'm having huge trouble with some XSL.
I'm trying to output XML with alternate lines coloured differently... so far I've got this:
<xsl:variable name="row-number" select="position()"/>
<tr class="
<xsl:choose>
<xsl:when test="$row-number mod 2 = 0">darkrow</xsl:when>
<xsltherwise>lightrow</xsltherwise>
</xsl:choose>">
can anyone tell me what I'm doing wrong... the error is:
The character '<' cannot be used in an attribute value
This is the first XSL I've written and I'm picking it up as I go along from the net... be gentle!
thanks
Emma