|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: position
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








