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

RE: Collecting sibling nodes under groupings

Subject: RE: Collecting sibling nodes under groupings
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 12 Jan 2006 14:17:36 -0000
RE:  Collecting sibling nodes under groupings
It's not clear to me what "Some subjects" is. Is this a list of subjects, if
so what form does it take? Are you trying to get a single entry grouped
under more than one subject?

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Mark Wilson [mailto:drmark@xxxxxxxxxxxxxxx] 
> Sent: 12 January 2006 13:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Collecting sibling nodes under groupings
> 
> It was suggested that I resubmit my question with a more 
> specific subject 
> line.
> 
> I am building a library catalog for my club. I put each 
> book's description 
> in an XML sequence like (but simplified)
> <List>
>     <Entry>
>         <Subject>Some Subjects</Subject>
>         <Title>Some Title</Title>
>         <Publisher>Some Publisher</Publisher>
>     </Entry>
>     .......
> </List>
> 
> Using Saxon 8, I then did a grouping using XSLT 2.0's new 
> grouping element 
> so that I get a list of all the subjects, but only a single 
> entry for each. 
> Now I want to create:
> <List>
>     <Subject>First Subject
>         <Title> First title associated with this subject</Title>
>             <Publisher>Publisher associated with this 
> title</Publisher>
>         <Title> Next title associated with this subject</Title>
>              <Publisher>Publisher associated with this 
> title</Publisher>
>     </Subject>
>     .....
> </List>
> More to the point, I want to collect all of the sibling nodes 
> from an entry 
> with all of the sibling nodes from other entries that share 
> the same subject 
> value. I have really looked and just failed to understand 
> what I am looking 
> at. The examples appear to show how to collect attributes, 
> but not how to 
> collect sibling nodes. My attemps have all failed.
> Thanks,
> Mark 

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.