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

Re: Need help with grouping

Subject: Re: Need help with grouping
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jun 2024 21:10:23 -0000
Re:  Need help with grouping
Is there any need for grouping?


It seems you have the `figure` elements already in a `chapter` parent so processing each `chapter` and inside each `figure` and then the `foldout`s should allow you to have the right "grouping"/nesting for the result.

On 10/06/2024 23:05, Charlie 0 charlieo0@xxxxxxxxxxx wrote:
I am writing FO style sheets where I have foldout figure (11x17)
interspersed with "regular" figures. In the output, the foldout
figures are placed at the end of each chapter. I have that done. I
need to create a List of Illustrations where the figures are rendered
first, followed by the foldout figures. I need to group them by
chapter. I am familiar with grouping by haven't worked with it lately
so I could use some guidance on defining and outputting the groups.
And very basic example of the structure:

<book>
<chapter>
B B B  <para>Para Stuff</para>
B B B  <para>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig1 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig2 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B B B B B  <foldout>
B B B B B B B B B B B  <figure>
B B B B B B B B B B B B B B B  <title>foldoutFig1 title</title>
B B B B B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B B B B B  </figure>
B B B B B B B  </foldout>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig4 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B  </para>
</chapter>
<chapter>
B B B  <para>Para Stuff</para>
B B B  <para>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig5 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig6 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B B B B B  <foldout>
B B B B B B B B B B B  <figure>
B B B B B B B B B B B B B B B  <title>foldoutFig2 title</title>
B B B B B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B B B B B  </figure>
B B B B B B B  </foldout>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig8 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B B B B B  <figure>
B B B B B B B B B B B  <title>Fig9 title</title>
B B B B B B B B B B B  <graphic file="xxx.tif"></graphic>
B B B B B B B  </figure>
B B B  </para>
B B B  <para>More para stuff</para>
</chapter></book>

The output will be XSL-FO, but here is the basic idea of how I need to
have the figure and foldouts on output. I have all the numbering
already done, so don't focus on that. I need to get the "regular"
figures listed first, followed by the foldout figures, by chapter.

<illuslist>
B B B  <table>
B B B B B B B  <row>
B B B B B B B B B B B  <entry>1-1</entry><entry>Fig1 title</entry>
B B B B B B B  </row>
B B B B B B B B B B B  <row>
B B B B B B B B B B B B B B B  <entry>1-2</entry><entry>Fig2 title</entry>
B B B B B B B B B B B  </row>
B B B B B B B B B B  <row>
B B B B B B B B B B B B B B  <entry>1-3</entry><entry>Fig4 title</entry>
B B B B B B B B B B  </row>
B B B B B B B B B B B  <row>
<entry>1-4</entry><entry>foldoutFig1 title</entry>
B B B B B B B B B B B  </row>
B B B B B B B  <row>
B B B B B B B B B B B  <entry>2-1</entry><entry>Fig5 title</entry>
B B B B B B B  </row>
B B B B B B B B B B B  <row>
B B B B B B B B B B B B B B B  <entry>2-2</entry><entry>Fig6 title</entry>
B B B B B B B B B B B  </row>
B B B B B B B B B B B  <row>
B B B B B B B B B B B B B B B  <entry>2-3</entry><entry>Fig8 title</entry>
B B B B B B B B B B B  </row>
B B B B B B B B B B B  <row>
B B B B B B B B B B B B B B B  <entry>2-4</entry><entry>Fig9 title</entry>
B B B B B B B B B B B  </row>
B B B B B B B  <row>
B B B B B B B B B B B  <entry>2-5</entry><entry>foldoutFig2 title</entry>
B B B  B B B  </row
B B B B </table>

</illuslist>

Thanks,

Charlie O

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.