[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: [xslt transform & grouping] Using the Muenchia
Yeah, it works by adding defining a key:
<xsl:key name="by-info" match="Article" use="@info"/> <xsl:param name="filter" select="'food'"></xsl:param> But, I still got the problem with traversing the complete tree for select=food. E.g. If the parent node element Document does not have filter-attribute defined or if it's equal to zero, that is filter="", than the complete algorithm stops traversing the tree. That is one of the issues. Is there a way to solve this ? <Documents> <Document chapter="1" title="title 1" href="file1.xml" filter=""> <Article title="1.1" info="sub" filter="drink"/> <Article title="1.2" info="main" filter="food"/> </Document> <Document chapter="2" title="title 2" href="file2.xml" filter="drink"> <Article title="2.1" info="sub" filter="drink"/> <Article title="2.2" info="main" filter="food"/> </Document> </Documents> Thank you ! From: David Carlisle <davidc@xxxxxxxxx> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|
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
|