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

Re: copy without duplicates

Subject: Re: copy without duplicates
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Fri, 04 Mar 2005 13:26:15 +0100
xslt copy of duplicates
Henning Waack wrote:

input.xml:

<elements>
    <a/>
    <b/>
    <link location="extern1.xml"/>
    <c/>
    <a/>
    <link location="extern2.xml"/>
    <b/>
    <e/>
</elements>

extern1.xml:

<elements>
    <a/>
    <f/>
</elements>

extern2.xml:

<elements>
    <g/>
    <f/>
</elements>

So the input document references two more documents, which should be processed and copied to the result, too. The result should be:

<elements>
    <a/>
    <b/>
    <f/>
    <c/>
    <g/>
    <e/>
</element>

Is it possible to do this with XSLT 1.0 in one stylesheet? I have already a two-stylesheet-solution, but one stylesheet would be nicer.

could prob use a recursive EXSLT set:distinct http://www.exslt.org/set/functions/distinct/index.html


gl, Jim Fuller

pr: general info on duplicates can be found here http://www.dpawson.co.uk/xsl/sect2/N2696.html

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.