Does the XPath 2.0 data model support "well-balanced" XML?

I note the following in section 3.3 of the XQuery 1.0 and XPath 2.0 Data
Model:

The data model supports the following classes of XML documents:
 * Schema-validated documents, i.e., those validated with respect to a
schema,
 * DTD-valid documents, i.e., those documents validated with respect to a
DTD, and
 * Well-formed documents with no corresponding DTD or schema.

This list would seem to exclude so-called "well-balanced" [1] XML content,
that which corresponds to the content of an external general parsed entity,
and which is allowed in the XPath 1.0 Data Model.

The definition of DocumentNode farther down seems to indicate that multiple
ElementNodes (among others) are allowed, so forgive me if I am missing
something obvious.

Recent Working Drafts of XForms [2] use the XPath Data Model, and in fact in
some cases use this structure which, in the absence of other context, isn't
strictly well-formed.

Thus my confusion. Could you please clarify?

Thanks,

.micah

[1] http://www.w3.org/TR/WD-xml-fragment This CR defines the term
"well-balanced"
[2] http://www.w3.org/TR/xforms/

Received on Tuesday, 24 July 2001 17:10:12 UTC