Hi List,
I have a function “getNodes()” that returns a sequence of nodes( >= 1) from
source tree by “xsl:sequence” statement.
I want to remove duplicate nodes from this sequence.
The duplicate nodes in the sequence are not different nodes from source tree
with same values for some attributes but actually refer to same node in source
tree.
For example , Consider following tree
<person name=”a”/>
<person name=”b”/>
The function “getNodes()” might return a sequence containing 2 nodes both of
which refer to same node (<person name=”a”/>) of the source tree.
I cannot use some logic like “select node whose generate-id(.) is not equal to
generate-id(preceding-node)” as the duplicate nodes actually refer to same node
of source tree and hence preceding won’t work.
I’m using Saxon HE 8.8 Java.
Is there a function for selecting unique nodes from a sequence ?
There was a “saxon:distinct” function in older versions of saxon but is not
present in Saxon 8.
Any help in this regard is highly appreciated.
Thanks ,
Pushkar Khadilkar
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
--~------------------------------------------------------------------
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>
--~--