xsl-list
[Top] [All Lists]

Re: xmlns and java

2003-09-25 07:08:41
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



<Prev in Thread] Current Thread [Next in Thread>