Re: Grouping / unique list with just XPath
Hey, On 11/17/05, David Carlisle <davidc@xxxxxxxxx> wrote: > You can use keys against any node set. I'm not sure what you mean by > "dynamic" in this context, but if they stay still long enough to be > captured into an xsl variable, you can index them with an xsl key. The problem is that I don't know the schema of the incoming files but they're channeled through a recursive single template, so fiddling around with keys to capture something that I currently trap in <xsl:choose /> contraptions seem a bit tricky, especially through recursiveness. My files are reasonably small but numorous (about 50 per transformation), so the performance hit ain't currently a problem and I fear creating bucketloads of different keys to index all the possibilities might cause more code-bloat than I like. And yes, XSLT 1.0; using a framework that don't support 2.0 yet. Alex -- "Ultimately, all things are known because you want to believe you know." - Frank Herbert __ http://shelter.nu/ __________________________________________________
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