[Home] [By Thread] [By Date] [Recent Entries]
G. Ken Holman wrote:
At 2004-02-14 14:02 +0100, m.vanrootseler@xxxxxxxxx wrote:I was about to suggest using <xsl:number> too, so I made a small example, but the first note is not treated as I would expect it to be? sabloton will not parse the xsl complaining about "number is not positive" saxon does not number the first node, probably treating it as NAN xalan numbers the first node 0 So the following only works in Xalan (and it is probably a hack) <xsl:template match="w"> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:if test="note"> <xsl:variable name="tmp"><xsl:number count="note" format="1" level="any"/></xsl:variable> <span style="vertical-align:super;font-size:7pt"><xsl:value-of select="$tmp+1"/></span> </xsl:if> </xsl:template> What am I doing wrong? Thomas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



