[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Grouping problem. 2.0

Subject: Re: Grouping problem. 2.0
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 4 Jul 2008 15:56:40 +0100
Re:  Grouping problem. 2.0
> I want to number the 'blocks' as in 'legal' format
> 1.1
> 1.1.1 etc.

> source
> <book >
>   <title role="1">L1</title>
>
>   <title role="2">L1.1</title>
>   <para>This document defines an XML schema for  ....</para>
>   <title role="2">L1.2</title>
>   <para>The normative XML Schema for the OpenDoc ....</para>
>   <title role="1">L2</title>
>   <para>This chapter introduces the structure of ....</para>
>   <para>In the OpenDocument format, each structu ....</para>
>
>   <title role="2">L2.1</title>
>   <para>A document root element is the primary e ....</para>
>
>
>   <title role="3">L2.1.1</title>
>   <para>The content models of the five root elem ....</para>
>
>   <title role="4">L4 test</title>
>   <para>The content models of the five root elem ....</para>
>   <para>The &lt;office:document&gt; root contains a co ....</para>
>
>  <title role="4">L4 test 2.1.1.2</title>
>   <para>The content models of the five root elem ....</para>
>   <para>The &lt;office:document&gt; root contains a co ....</para>
>
>  <title role="2">L2.1</title>
>   <para>A document root element is the primary e ....</para>
>
> </book>


So for that input, what is the exact required output?  It's a little
difficult to work it out from the code..... (and probably easier to
achieve using something other than a recursive named template)


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.