[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: document() merge DISTINCT -- a Simple Functional S

Subject: Re: document() merge DISTINCT -- a Simple Functional Solution
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 19 Dec 2001 09:06:45 -0800 (PST)
xsl union and merge
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.