Subject: Re: [xsl] Using the key function From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 22 May 2007 21:39:22 +0100 |
<xsl:key name="numkey" match="//house" use="member/@ref"/> starting a match with // does nothing (in a template it just changes the default template in some cases, but in a key it does nothing) select="//*" that's an expensive operation! //* means all elements at all depths in your entire document I would guess you want to select house elements here, so that would be select="house" (assuming the current element at that point is the project element, I can't tell as you omitted the releveant bit of the stylesheet) but if you do mean to select house elements, then the xsl:sort select=@number won't sort anything as house elements don't have a number, perhaps you want xsl:sort select="property[@name='number']/@val" but I really can't tell as you give no indication of what output you expect or which elements you wish to sort/group David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using the key function, Fanghanel, Karl | Thread | RE: [xsl] Using the key function, Fanghanel, Karl |
[xsl] Using the key function, Fanghanel, Karl | Date | Re: [xsl] Using the key function, David Carlisle |
Month |