Re: [xsl] Advise on xsl usage producing very complex html

Subject: Re: [xsl] Advise on xsl usage producing very complex html
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 31 Jan 2001 13:48:11 GMT
> Can I merge document trees in XSLT 

yes. See the document() function.

> (or some other way).

yes there are other ways too (but this list is for xsl)


>  the first
> contains a, b the second a,b,c, the result should be a,b,c not aa,bb,c

If you gave a real example of two (small) documents which had some
elements in them and an example of what you want to come out, someone
might be able to help. In particular what do you mean to say two
documents "contain a" this could mean any of, for example:
the documents have elements with the same id? the same name? the same content?
Given that an XML document is a tree, not a list of letters as in your
example, _how_ do you want to merge them, where do you want to graft the
two together, and when removing duplicates which duplicate do you want to
remove. No one can suggest how to program your algorithm in XSLT if you
don't say what the thing is supposed to do.

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread