> However the following expressions
> 
> /.
> /self::node()
> 
> refer (AFAIK) to the document node, not the first child node (the root
> element). So the following expressions would return a blank string, since
> name() of a document is empty according to the XPath spec.
> 
> name(/.) or name(/self::node())

Ah, you're correct indeed.

/node() should be the valid thing, (exactly as you presented
yesterday), since the default axis for elements is child::,
right?

        -bob


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to