[20 January 2010]
Consider the XML document shown below, and in particular consider its representation in the XPath 1.0 data model.
How many element nodes are there in this document, regarded as an instance of the XPath 1.0 data model? I think it’s clear that, for purposes of XPath 1.0, the expected answer is four: one of type ‘
a’ and three of type ‘
b’, all children of the ‘
I am finding it unexpectedly difficult to prove that conclusion formally on the basis of the definition of the data model given in the spec. I wonder if anyone else will have better luck.