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

multiple output and grouping

Subject: multiple output and grouping
From: Luca <lcb@xxxxxxxxxxx>
Date: Wed, 15 Nov 2000 19:01:16 +0100
multiple output and grouping
I'm trying to generate a set of HTML pages from a single XML
document. Basically, my problem has to do with sorting and
grouping. The XML source looks like this:

<author>
  <name>...</name>
  <records>
    <record>...</record>
    ...
  </records>
</author>
...

That is, I have a list of authors and a list of records associated
with each author. What I want to do is sorting the list by author
and grouping the authors (with their records) alphabetically in
different HTML files, like this:

--- output file: A.html ---

<html>
  <body>
    <h1>A</h1>
    <h2>[name of an author beginning with the letter A]</h2>
    [list of records]
    <h2>[name of the next author beginning with the letter A]</h2>
    [list of records]
    ...
  </body>
</html>

--- output file: B.html ---

<html>
  <body>
    <h1>B</h1>
    <h2>[name of an author beginning with the letter B]</h2>
    [list of records]
    ...
  </body>
</html>

And so on...

I already know how to generate multiple output documents (I'm
using Saxon, so I can use saxon:output), but I'm stuck with
the grouping problem. I wrote many different stylesheets to
accomplish the task but none of them worked. Can you give me
any hints?

Best regards,
Luca



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.