[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document() merge DISTINCT -- a Simple Functional S
Two remarks about this solution: 1. The following four lines obviously were not taken care of and may be safely removed: <xsl:variable name="vList" select="$arg1/@id"/> <xsl:variable name="vList2" select="$arg1/*/@id"/> <xsl:variable name="vElem" select="$arg2/@id"/> 2. Not only in this particular case, but always when using the union of several xml documents, there's no guarantee about the order of the elements -- therefore the result of the given example may be different depending on the particular XSLT processor used. In case the order is important, then the different xml files have to be unified one at a time, using RTFs and the xx:node-set() extension function. Cheers, Dimitre Novatchev. __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com 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
|