RE: Data Model 4.1.8 - children accessor

In the data model yes. Since the data model itself does not constrain
the content of a document node (mainly due to XSLT 1.0 backwards compat
reasons but also used (potentially going to be used) by implementations
of the ISO SQL-2003 XML datatype that are using the XQuery/XPath data
model...

Best regards
Michael 

> -----Original Message-----
> From: Svgdeveloper@aol.com [mailto:Svgdeveloper@aol.com] 
> Sent: Friday, February 28, 2003 14:27 PM
> To: public-qt-comments@w3.org
> Subject: Data Model 4.1.8 - children accessor
> 
> 
> 
> In what circumstances can a document node exist which has no 
> child nodes? The 
> children accessor is said to return an empty sequence for 
> document nodes 
> which have no children.
> 
> The document-node() constructor (4.2.2) has to have a 
> non-empty sequence of 
> child nodes as arguments.
> 
> An "XML document" with no document element is a pretty poor 
> "XML document".
> 
> In addition a document node is said to have a [children] 
> property. In the XML 
> Infoset Recommendation the [children] property of the 
> document information 
> item is said always to have exactly one child element 
> information item.
> 
> Can a document node with no child nodes exist without causing 
> an error?
> 
> Andrew Watt
> 
> 

Received on Friday, 28 February 2003 19:10:29 UTC