|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xmlns and java
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








