Subject: Re: [xsl] Sorting by document order of some other element From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 25 Jun 2007 23:26:14 +0100 |
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="k" match="set2/*" use="@id"/> <xsl:output indent="yes"/> <xsl:template match="doc"> <set2> <xsl:copy-of select="for $e in set1/* return key('k',$e/@id)"/> </set2> </xsl:template> </xsl:stylesheet> 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 -> |
---|---|---|
Re: [xsl] Sorting by document order, Peter Hunsberger | Thread | Re: [xsl] Sorting by document order, Peter Hunsberger |
RE: [xsl] XPath Question (related t, Michael Kay | Date | Re: [xsl] Isolate single result fro, Eric Bréchemier |
Month |