Re: [xsl] would like to simplify my XSLT

Subject: Re: [xsl] 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