Subject: Re: [xsl] Comparing nodes in axis From: xptm <xptm@xxxxxxx> Date: Fri, 17 Dec 2004 19:39:54 +0000 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Comparing nodes in axis, Michael Kay | Thread | Re: [xsl] Comparing nodes in axis, António Mota |
Re: [xsl] Where is the attribute?, Geert Josten | Date | Re: [xsl] Comparing nodes in axis, xptm |
Month |