Re: [xslt] xsl:number level="multiple"



On Thu, Jul 19, 2001 at 02:34:55PM +0100, Sebastian Rahtz wrote:
> John Fleck writes:
>  > I have no idea if this is the Right Way(tm), but this works:
>  > ***************
>  > <xsl:template match="a">
>  >     <xsl:number level="multiple" format="1.1.1" />
>  >     <xsl:apply-templates/>
>  >   </xsl:template>
> 
> yes, but
> 
>  a) it shouldnt be needed. the format should be extended as needed.
>  b) try format="1.1.1.1.1.1.1.1"  and watch it generate
> 
>    1.1.
>     1.1.1.
>     1.1.2.
>    1.2.
> 
> 
>  note the spurious closing "."
> 
> there is *some* bug here...
> 
> 

In the spec (http://www.w3.org/TR/1999/REC-xslt-19991116.html#number),
the example uses:

  format="1. "

(Much better than my goofy example above.)

But you're wanting it to format the last number differently than the
others, without the "."?

hmmmm.

-- 
John Fleck
jfleck@inkstain.net (h), http://www.inkstain.net/fleck/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]