However, in my second example,
ancestor::menu = (//menu)[$pos]
i can not do
(count(ancestor::menu|(//menu)[$pos])=1)
but if my understanding of the union operator is correct, i can make
(count(ancestor::menu|(//menu)[$pos])=(count(ancestor::menu))
Right?
Citando xptm <xptm(_at_)sapo(_dot_)pt>:
Michael Kay wrote:
You are comparing the nodes for equality, whereas your description suggests
you want to compare them for identity. To compare whether $A and $B are the
same node, use ($A is $B) in XPath 2.0, or (count($A|$B)=1) in XPath 1.0.
That's exactly what i want. In fact, testing for equality could lead to
potencial errors, cause nothing in my structure forbids the existence of
two nodes with the same content.
A very large thank you...
--~------------------------------------------------------------------
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>
--~--
O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt
--~------------------------------------------------------------------
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>
--~--