[Bug 2463] [XDM] String value of a document node

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2463





------- Additional Comments From mike@saxonica.com  2006-01-20 18:01 -------
I think we should probably define the same constraint for element nodes (that
is, the string value is the concatenation of the descendant text nodes). This
seems to cover several cases:

(a1) if the element has simple content and what the implementation actually
stores is the string value, then it must behave as if it had a text node with
that value

(a2) if the element has simple content and what the implementation actually
stores is the text node, then it must behave as if it had a string value with
the same content as the text node

(a3) if the element has simple content and what the implementation actually
stores is the typed value, then it must generate the string value and the text
node from this typed value in the same way - it can't present a string value of
"3" and a text node of "003".

(b) if the element has mixed content, then the string value must be the same as
the typed value

(c) if the element has element-only content, then it has no typed value, but the
string value must be the same as the concatenation of text nodes, as in the case
for document nodes.

Received on Friday, 20 January 2006 18:01:27 UTC