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

How to display more complicated xml document by xsl (a

Subject: How to display more complicated xml document by xsl (again)?
From: shenjun <shjunsuper@xxxxxxx>
Date: Wed, 6 Mar 2002 20:44:36 +0800
xml complicated xsl
(First, especially thanks for Jeni Tennison' help! Your reply is ok!)

Following is a series problem with last one. 

<Content>
<Keywords>
<Keyword id=1>
<AAA>aaa</AAA>
</Keyword>
<Keyword id=2>
<CCC>ccc</CCC>
</Keyword>
<Keyword id=3>
<BBB>bbb</BBB>
</Keyword>
<Keyword id=4>
<DDD>ddd</DDD>
</Keyword>
<Keyword id=5>
<EEE>eee</EEE>
</Keyword>
</Keywords>
<Groups>
<Group name="group1">
<Member>1</Member>
<Member>2</Member>
</Group>
<Group name="group2">
<Member>4</Member>
<Member>5</Member>
</Group>
</Groups>
</content>

This time I want to display the Keyword in order. First line(tr/td) will display 'group1', second line display the Keyword 3 only, and the last line display 'group2'. 

I used <xsl:key name="keywords" match="Content/Keywords/Keyword" use="@id"> to declare a keywords, and use <xsl:for-each select="//Groups/Group"> to display every group, but how and when to display the Keyword 3 ? 

Thanks again.    sjoy

 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.