Hi everybody,
I am starting this new thread, because the discussion does not fit the
subject of the previous thread anymore.
My situation is as follows: My user selects a subset of the original XML
file. After this action I need to compare the selection of the user to
the original. Once I find the location of the selection inside the
original I have to surround this selection with a new tag, say
"<selected>", and "</selected>". I have placed an example of text online
at http://www.jborsje.nl/example.txt, so you can see what I mean.
One way I can think of is iterating over all of the elements of the
original, each time calling the "deep-equal()" function, but I do not
know if that is the best approach.
--
Best regards,
Jethro Borsje
http://www.jborsje.nl
--~------------------------------------------------------------------
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>
--~--