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



On Wed, Jul 18, 2001 at 11:12:03PM +0100, Sebastian Rahtz wrote:
> consider
> 
> <a>
>  <a>
>    <a></a>
>    <a></a>
>  </a>
>  <a></a>
> </a>
> 
> processed by 
> 
>   <xsl:template match="a">
>     <xsl:number level="multiple" format="1" />
>     <xsl:apply-templates/>
>   </xsl:template>
> 
> The libxslt output is 1 11 111 112 12, which is surely not right?
> 

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>
**************

Cheers,
-- 
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]