|
[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
(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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








