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

Cross reference, grouping, sorting & filtering problem

Subject: Cross reference, grouping, sorting & filtering problem
From: Tom Hall <tjphall@xxxxxxxxxxx>
Date: Mon, 29 Oct 2001 02:57:48 +0000 (GMT)
reference grouping
Hi, following is an example of an xml structure that I
require grouped through the use of cross references
based on a parameterised filter value. The xml
structure is fairly large so the use of keys to lookup
the 'part' element is highly desirable.
I am currently using xsl:param to define a filter
value for 'collection@name' having got that I need to
return a result set that for all the 'parts' referred
to by 'ref@refid' references in the 'collection'
grouped by 'part@type', sorted with in each group by
'part@name'. It would also be desirable to have the
result set assigned to an xsl:variable.

<large-collection>
	<part id="1" type="type-a" name="name-a"/>
	<part id="2" type="type-a" name="name-b"/>
	<part id="3" type="type-b" name="name-c"/>
	<part id="4" type="type-d" name="name-d"/>
	<part id="5" type="type-b" name="name-e"/>
	<part id="6" type="type-c" name="name-f"/>
	<part id="7" type="type-d" name="name-g"/>
	<part id="8" type="type-b" name="name-h"/>
	<part id="9" type="type-c" name="name-i"/>
	...
	<collection name = "groupA">
		<ref refid="1"/>
		<ref refid="3"/>
	</collection>
	<collection name = "groupB">
		<ref refid="3"/>
		<ref refid="4"/>
	</collection>
</large-collection>


Cheers 
Tom Hall

____________________________________________________________
Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.

 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.