Re: [xsl] xmlns and java

Subject: Re: [xsl] xmlns and java
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 15:08:41 +0100
Hi Robert,

> Intended output:
> 1-1 first para in chapter
> 1-2 second para in chapter
> 1-3 third para in chapter
> ...
>
> XML:
> <chapter>
>    <intropara>first para in chapter</intropara>
>    <subpara1>second para in chapter</subpara1>
>    <para>third para in chapter</para>
> </chapter>

This is a good example of when to use <xsl:number> with
level="multiple". The count attribute of <xsl:number> needs to match
the elements that you want to count (at any level), and the format
needs to be 1-1:

  <xsl:number level="multiple"
              count="chapter | intropara | subpara1 | para"
              format="1-1" />

I don't see any reason for using Java here.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread