|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Hierarchy problem
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








