xsl-list
[Top] [All Lists]

Re: [xsl] Distinguishing the root node of a node-set

2007-03-08 14:50:44


you want 
test="$var/self::root1"
but that isn't what you asked for, a root node in XPath is never an
element node with a name, it is the node denoted by / that is the parent
of the top level element. Xpath2 calls these nodes document nodes rather
than root nodes to try to avoid  this confusion over the term "root"

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>