[Bug 2700] [XSLT] need to clarify type value after stripping type annotations

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





------- Additional Comments From mike@saxonica.com  2006-01-27 20:31 -------
Note: we decided that the is-id and is-idref properties should be retained.
However, XQuery sets these properties to false. (3.7.1.3 1.e.ii.C.I) We should
therefore consider this again.

Proposed text:

In 4.3, add new paragraph:

The effect of stripping type annotations is as follows:

* The type of every element node is changed to xdt:untyped

* The type of every attribute node is changed to xdt:untypedAtomic

* The string-value of every element and attribute node remains unchanged

* The typed value of every element and attribute node is set to be the same as
its string-value, with type xdt:untypedAtomic

* The is-id and is-idref properties of element and attribute nodes are unchanged

* The is-nilled property of element nodes is set to false

In 19.2.1.1 (Validation) change the first bullet point to read:

The value strip indicates that the new node and each of the contained nodes will
have the type annotation xdt:untyped if it is an element, or xdt:untypedAtomic
if it is an attribute. Any previous type annotation present on a contained
element or attribute node (for example, a type annotation that is present on an
element copied from a source document) is also replaced by xdt:untyped or
xdt:untypedAtomic as appropriate. The string-value and typed-value and the
is-id, is-idref, and nilled properties are affected in the same way as nodes
subjected to stripping of type annotations from a source tree (see 4.3). Schema
validation is not invoked.

Received on Friday, 27 January 2006 20:31:21 UTC