Subject: [xsl] xsl:number again From: Sebastian Rahtz <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 16 Oct 2001 14:15:03 +0100 |
I have raised this before, but forgot about it until recently. Consider the input: <div><div><div><div><div><div></div></div></div></div></div></div> and the XSLT: <xsl:template match="div"> <xsl:number level="multiple" format="1.1.1.1.1.1.1"/><xsl:text> </xsl:text> <xsl:apply-templates/> </xsl:template> and the result: 1. 1.1. 1.1.1. 1.1.1.1. 1.1.1.1.1. 1.1.1.1.1.1 The point being that I cannot reliably suppress the trailing "." on numbers. What I want is numbers separated by "." punctuation, but with nothing at the end. I *could* use a choose statement to see how deeply nested I am, and use a different format at each level, but surely that should not be needed? Saxon and XT do what I want, Oracle and libxslt don't. <despair/> sebastian XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: libxslt & apache modules - was , Robert Koberg | Thread | RE: [xsl] xsl:number again, Michael Kay |
RE: [xsl] Saxon 6.4.4 (out of memor, Michael Kay | Date | RE: [xsl] best way to generate form, Chris Bayes |
Month |