[Bug 5458] [SER] indentation with xml output method

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





------- Comment #5 from zongaro@ca.ibm.com  2008-03-11 17:29 -------
At the joint teleconference of 2008-03-11, the working groups discussed a
general approach to resolving this issue in which an element would be subject
to indentation if it is annotated with a user-defined type (neither xs:untyped
nor xs:anyType); that would be in accordance with the response to
qt-2004Feb0930-01.  To ensure the type annotation is preserved, the sequence
normalization process described in section 2 of the Serialization
Recommendation needs to make it explicit that type annotations are preserved.

I would like to propose the following changes to Serialization:

1. In the third paragraph of section 2, after the first sentence, add "Where a
step in the sequence normalization process indicates that a node should be
copied, the copy is performed in the same way as an XSLT xsl:copy-of
instruction that has a validation attribute whose value is preserve and has a
select attribute whose effective value is the node, as described in Section
11.9.2 "Deep Copy" of XSLT 2.0, or equivalently in the same way as an XQuery
content expression as described in Step 1e of Section 3.7.1.3 "Content" of
XQuery 1.0, where the construction mode is preserve." (with appropriate
cross-document links to the relevant sections of XSLT and XQuery and to the
definitions of "content expression" and "construction mode".)

2. In the Note in Section 2, in the first example box add the attribute 
"validation='preserve'" to both the xsl:document and xsl:copy-of instructions,
and in the second example box add the declaration "declare construction
preserve;" to the start of the example.

3. In Section 5.1.3, in the fourth item in the bulleted list, change "in the
content of an element whose content model is known to be mixed" to "in the
content of an element that is annotated with a type other than xs:untyped or
xs:anyType, and whose content model is mixed."

Received on Tuesday, 11 March 2008 17:29:10 UTC