Little doc bug #191

Merged
merged 1 commit into from Aug 2, 2011

2 participants

@Akron

At the moment, ->root returns the root of the document, not the root element.
That's why ->root and ->at(':root') are not the same. The nomenclature however is a bit confusing throughout the different xml specs (XML, XPath, XSLT etc.), with XPath having the best definitions (my colleague believes ;)) with calling all these things "nodes" and only elements "elements" (http://www.w3.org/TR/xpath20/).
The bug is - it does not return an element for the moment.
For a discussion on that topic, refer to http://www.dpawson.co.uk/xsl/sect2/root.html.

Best,
Nils

@kraih kraih merged commit e2411b5 into kraih:master Aug 2, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment