[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: document() merge DISTINCT -- a Simple Functional Solution


Subject: [xsl] Re: document() merge DISTINCT -- a Simple Functional Solution
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 19 Dec 2001 09:06:45 -0800 (PST)

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
Keywords