xsl-list
[Top] [All Lists]

RE: Which patterns will select the root node?

2005-10-16 09:38:49
node() matches the root node, for example in the following 
XPath expression:

     ancestor::node()

But ancestor::node() is not a valid match pattern.

In XSLT 1.0, the only pattern that matches the root node is "/".

In XSLT 2.0, you can use patterns of the form document-node()[predicate].

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
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>
--~--