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

about meucheun method (using multiple keys)

Subject: about meucheun method (using multiple keys)
From: =?big5?b?qkwgpGyq5A==?= <minikittygo@xxxxxxxxxxx>
Date: Wed, 03 Jul 2002 16:38:14 +0000
muenchian multiple keys

hi i guess this is a very common question, but i was wondering, whether the muenchian method (to be more precise, the xsl:key method) supports multiple keys, i.e. having more than one element in the use attribute


in my case, i have an xml file like this:

...
<book>
<author>author1</author>
<name>x box</name>
<type>sc-fi</type>
</book>
<book>
<author>author2</author>
<name>elf story</name>
<type>adventure</type>
</book>
<book>
<author>author1</author>
<name>the return of Dr who</name>
<type>sc-fi</type>
</book>
<book>
<author>author2</author>
<name>something2</name>
<type>sc-fi</type>
</book>
...

i would like to have group the output using both author and type for instance the ideal result should be....

<group name="author1" type="sc-fi">
<name>x box</name>
<name>return of Dr who</name>
</group>
<group name="author1" type="adventure">
<name>elf story</name>
</group>
<group name="author2" type="sc-fi">
<name>something2</name>
</group>

with mucheun mehtod i can only group them with one condition (either name or type) but i think there must be a way to archive such. any feedback with be a great help

Many thanks

regards

Kit







_________________________________________________________________
在您的行動裝置上傳送接收 Hotmail 郵件,請移至:http://mobile.msn.com


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.