This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
merging xml documents
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] merging xml documents
- From: "Pollington, Lee (ELSLON)" <lee dot pollington at biomednet dot com>
- Date: Wed, 31 Jan 2001 14:37:46 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Well Oliver did.
You know what abstraction is?
If you take a look at Oliver's merge.xslt, you'll see it's a little more
complicated than the document() function.
Are you the administrator for this list or something?
-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: 31 January 2001 13:48
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Advise on xsl usage producing very complex html
> 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list