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

Re: Problems grouping nested items within a completely

Subject: Re: Problems grouping nested items within a completely flat structure
From: "Wegmann, Frank frank.wegmann@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 6 Aug 2014 13:37:12 -0000
Re:  Problems grouping nested items within a completely
Hi David.

In principle, there could be deeply further nested lists. In fact, this is not
the case with the files at hand, so there are just two levels. But chapters
are nested five levels down: para[@pgftag=bChapterb], para[@pgftag=b1st
Sectionb], ..., para[@pgftag=b4th Sectionb], and they are all siblings
of one another:-(
And my source file is about 5 MB large, so I need a scalable solution, my own
one wasnbt...

Frank

From: David Rudel fwqhgads@xxxxxxxxx<mailto:fwqhgads@xxxxxxxxx>
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Mittwoch, 6. August 2014 15:25
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx<mailto:xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  Problems grouping nested items within a completely flat
structure

Frank,
One quick question: can the nested lists themselves have nested lists? I
gather from the way nested lists are handled in the source that they cannot,
or is there a separate type of @pgftag for each level of such a structure?
(First level = Bulleted text, Second Level = Bullet Sub, etc.)
Regardless of the above, a first step in trying to do this with a
for-each-group would be to use the group-starting-with attribute:
<xsl:for-each-group select="para"
group-starting-with="para[@pgftag=('Chapter','Body Text')]">

>From a cursory look at your source and desired output, this would break the
elements into snippets that have a particular form of either a chapter heading
or a collection of non-list elements followed by a single list.
Then these individual snippets can be processed.

-David

Software AG b Sitz/Registered office: UhlandstraCe 12, 64297 Darmstadt,
Germany b Registergericht/Commercial register: Darmstadt HRB 1562 -
Vorstand/Management Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Dr.
Wolfram Jost, Arnd Zinnhardt; - Aufsichtsratsvorsitzender/Chairman of the
Supervisory Board: Dr. Andreas Bereczky - http://www.softwareag.com

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.