Re: ORA-SE-301-B: Indent parameter should not apply to (potentially) mixed-mode elements (qt-2004Feb0930-01)

Steve,

     In [1], you submitted the following comment on the Last Call Working 
Draft of XSLT 2.0 and XQuery 1.0 Serialization:

<<
SECTION 3: serialization parameters

It says "indent specifies whether the processor may add additional
whitespace when outputting the data model...". 
It is not clear to what extent this interacts with the 
properties of nodes.  For example, if an element's type permits
mixed content, then adding whitespace to that element's content
potentially damages that element's semantics.  If an element has
not been validated, then it is possible that that element is 
intended to have mixed content and the processor just doesn't know
it, so again, the conservative thing to do is to prohibit adding
whitespace.  If an element has been validated and is known to 
have only elements in its content model, then it would be permissible
to add whitespace to that element's content on output as a 
pretty-printing option.  The conclusion is that this parameter
should only govern the output of such elements.
>>

     Thank you for this comment.  The XSL and XML Query Working Groups 
discussed your comment.  Recently, the working groups made a decision in 
principle to define serialization in terms of the mapping to Infoset 
defined by Data Model.  As such, the concept of the content model of an 
element will no longer available when the indent parameter takes effect.

     In order to give some guidance to processors regarding the effect of 
indent on elements with mixed content, the working groups decided to add a 
statement that whitespace should not be added where it might be 
significant.  I would like to add the following item to the bulleted list 
in Section 5.3 of the 23 July draft of Serialization:

<<
o Whitespace characters should not be added in places where the characters 
would be significant - for example, in the content of an element whose 
content model is known to be mixed.
>>

     As a representative of Oracle was present when this decision was 
made, I will assume the response is acceptable to you.

Thanks,

Henry [On behalf of the XSL and XML Query Working Groups]
[1] 
http://lists.w3.org/Archives/Public/public-qt-comments/2004Feb/0930.html
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com

Received on Wednesday, 1 September 2004 14:17:09 UTC