> Does this do what you want - it checks if the node in $point2
> is the parent of the node in $point1 (I think):
>
> <xsl:when test="$point1/.. = $point2">
No, it tests whether they have the same string-value.
Consider
<a>123</a><b><c>12</c><d>3</d></b>
then your condition would be true for nodes <c> and <a>.
To do comparisons on identity rather than content, use generate-id().
(or in XPath 2.0, the "is" operator).
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Hierarchy problem
- DPawson - Fri, 19 Jul 2002 12:11:19 -0400 (EDT)
- <Possible follow-ups>
- McNally, David - Fri, 19 Jul 2002 15:13:10 -0400 (EDT)
- Michael Kay - Sat, 20 Jul 2002 11:32:04 -0400 (EDT) <=
- DPawson - Mon, 22 Jul 2002 05:38:32 -0400 (EDT)
|
|