RE: an Xpath question - $tag/$subtag2003-07-08 06:26:04$v1/$v2 does depend on $v1 being empty (or not) doesn't it? Isn't it if empty($v1) then $v2 else () (Just in case you were planning to optimise it away:-) You are almost right. It also forces the nodes in $v2 to be deduplicated and in document order (and forces them to be nodes!). And the empty() condition is the other way around. So I think it is actually if (empty($v1)) then () else $v2/. Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
|