Hi everyone,
I have a series of br elements scattered throughout an xhtml document. I would
like to change the very first <br> to '<tr><td>', the intervening ones to
'</td></tr><tr><td>', and the last one to '</td></tr>'
I have got this template at teh moment
<xsl:template match="//br[text()='LineNumberHolder']">
<xsl:choose>
<xsl:when test="position()=//br[text()='LineNumberHolder'][position()=1]">
<xsl:text disable-output-escaping="yes"><tr><td></xsl:text>
</xsl:when>
<xsl:when test="position()=//br[text()='LineNumberHolder'][last()]">
<xsl:text disable-output-escaping="yes"><\td><\tr></xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text
disable-output-escaping="yes"><\td><\tr><tr><td></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
However, it changes all <br> tags to '<\td><\tr><tr><td>'
Please could someone tell me what I'm doing wrong?
Thanks,
Munna
--
_______________________________________________
Get your free email from http://www.iname.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list