[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: would like to simplify my XSLT
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 29 Jan 2007 14:35:01 GMT
something like this perhaps

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">

<xsl:key name="d" match="document" use="@id"/>

   <xsl:template match="/">
     <people>
       <xsl:copy-of select="data/persons/person[document[not(key('d',@relid))]]/name"/>
     </people>
   </xsl:template>

</xsl:stylesheet>

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member