ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
[xsl] Re: document() merge DISTINCT -- a Simple Functional Solution
by Dimitre Novatchev other posts by this author
Dec 19 2001 5:06PM messages near this date
Re: [xsl] One nodeset, multiple branches | RE: [xsl] DOM and XPath slows down the
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved