xsl-list
[Top] [All Lists]

Re: copy without duplicates

2005-03-04 05:26:15
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>