[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: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Fri, 04 Jul 2008 17:54:48 +0100
Re:  Grouping problem. 2.0
David Carlisle wrote:
grr your test document had two L2.1 sections which caused me some grief
trying to work out why it numbered the second one 2.2;-)

If I understand what you want, something like this:



$ saxon9 dpbook.xml dpbook.xsl
<?xml version="1.0" encoding="UTF-8"?>
<block role="1" number="1">
   <title role="1">L1</title>
   <block role="2" number="1.1">
      <title role="2">L1.1</title>
      <para>This document defines an XML schema for  ....</para>
   </block>
   <block role="2" number="1.2">
      <title role="2">L1.2</title>
      <para>The normative XML Schema for the OpenDoc ....</para>
   </block>
</block>

Neat. No fancy enumerations either David :-)


I didn't want the nesting (it's to move on to docbook
simplesect elements next, which need to be at para level)
but I think that won't matter.

I've got the numbers, and the section titles.

Sorry about the bum test data. My bad.


Thanks. regards




regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.