Subject: RE: [xsl] Hierarchy problem From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Sat, 20 Jul 2002 16:35:26 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Hierarchy problem, McNally, David | Thread | RE: [xsl] Hierarchy problem, DPawson |
handling namespaces in advance Re: , James Fuller | Date | [xsl] Generating the xml: namespace, Danny Vint |
Month |