Subject: Re: Fw: Question on duplicate node elimination
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 24 Aug 2010 13:16:52 +0100
|
I haven't understood your logic in any detail, but I wonder if it
suggests an alternative approach to the problem: namely, avoid creating
RTFs entirely, at least for intermediate results. Instead, whenever you
are evaluating an operation that returns a node-set, represent that
node-set as a string containing the generate-id values of the nodes in
the node-set, space-separated. Elimination of duplicates then reduces to
an operation on strings: not trivial, but not especially difficult either.
Michael Kay
Saxonica
|