Re: Merging multiple documents and combining their nod
> My team's currently limited to XSLT 1.0, in that case I'd do it in two passes, first pull in all the elements into one tree: <xsl:variable name="temp"> <components> <xsl:copy-of select="document(document('filenames_file.xml')/files/file)/components/component"/> </components> </xsl:variable> then use exslt:node-set so you can apply templates to that to do the grouping (eg muenchian grouping using keys as described in the faq or jeni's site. this is much easier now that all the nodes to be grouped are siblings of each other. <components> <xsl:for-each select="exslt:node-set($temp)/components/component[..... .... </xsl:for-each> </components> 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. ________________________________________________________________________
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