> >
> > I believe I can pick up on the missing elements as soon as I've passed
them
> > by. If I have two sorted trees to compare and in one I go from A to C
and in
> > the other I go from A to B then I know I've missed B in the first?
>
>
> But only if you have some specification of the order other than "the
> order in which they appear". By using "A" and "C" above you are implying
> alphabetic order and so its not hard to spot B is missing but in your
> example
> you said the order of the elements in the two docs could be different
> so how in that case do I know B is missing rather than just later in the
> order?
The document order from document A is sufficient. This document is actually
generated from a database using a sort order as specified by various
database elements. Thinking about this last night I realized that I should
always be able to use the current node as the context node and check if the
next element in document A exists in document B or not and if not, call some
template to generate it. I'll hopefully be able to have a go at generating
the code this afternoon, but I somehow suspect I'll be posting about this
again...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Conditional document merge, (continued)
- Hunsberger, Peter - Mon, 27 May 2002 13:04:33 -0400 (EDT)
- Hunsberger, Peter - Mon, 27 May 2002 13:56:55 -0400 (EDT)
- Hunsberger, Peter - Tue, 28 May 2002 09:36:35 -0400 (EDT) <=
- Mulberry Technologies List Owner - Tue, 28 May 2002 12:04:13 -0400 (EDT)
- Hunsberger, Peter - Tue, 28 May 2002 16:47:47 -0400 (EDT)
- Hunsberger, Peter - Tue, 28 May 2002 17:30:35 -0400 (EDT)
|
|