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

Merging nodes to process with FO

Subject: Merging nodes to process with FO
From: Russell Levy <russlevy@xxxxxxxxxx>
Date: Mon, 29 Aug 2005 23:14:49 -0400
russell levy
I've been using XSLT and FO for a while, but I didn't really learn much in depth about either.

I'm trying to take data from two nodes to create a table in FO. Here would be sample data:

<unit>
 <id>15</id>
 <name>1</name>
</unit>
<unit>
 <id>16</id>
 <name>2</name>
</unit>
<occupant>
 <name>Smith</name>
 <unitid>15></name>
</occupant>
<occupant>
 <name>Jones</name>
 <unitid>15></name>
</occupant>

I would then want rows based on this data, something like this:

1 | Smith
1 | Jones
2 | Vacant

My problem is I can't do a for-each on either the unit or the occupant; if I do it on the unit, I'll only get one row for unit 1, and if I do it on the occupant, I won't get any rows for 2. I also want to be have it sorted by unit, so I wouldn't be able to do a for-each on all occupants, then another on all units that don't have an occupant.
Any advice on doing something like this?


Thanks in advance,
Russell Levy

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.