|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: merging two documents - only if second document ma
> I have two documents, file A and file B. I want to join them
> on the id of
> the first, but only if a matching id is in the 2nd. How do I do this?
>
> File A File B Desired Output
> <id> A </id> <id> A </id> <id> A </id>
> <id> B </id> <id> C </id> <id> D </id>
> <id> D </id> <id> D </id>
>
<xsl:copy-of select="document('a.xml')//id[.=document('b.xml')//id]"/>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








