[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Outputing Differences between two files
Hi Jonathan,
Use an index. <xsl:key name="values" match="bb" use="string(.)" /> <xsl:template match="a"> <xsl:if test="count(key('values', string(bb))) > 1"> <xsl:copy> <xsl:copy-of select="@*|bbb" /> </xsl:copy> </xsl:if> </xsl:template> Vary on this theme as you like... Cheers, Geert Jonathan Marenus wrote: I'm trying to write an XSL that receives an XML file as input and outputs only the values that have a certain sibling's value duplicated in the file. For example, if I have the following XML:
http://www.daidalos.nl/ tel:+31-(0)10-850 12 00 fax:+31-(0)10-850 11 99 GPG: 1024D/12DEBB50
|
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
|