[XSLT2.0] IBM-XSLT-107: Should xml:space have no effect before xsl:attribute?

[With apologies that these comments are coming in after the end of the 
Last Call comment period.]

Section 4.2

Bullets 4 and 5 in this section specify circumstances in which the value 
of the xml:space attribute in a stylesheet should be ignored, and 
whitespace stripped from the stylesheet.  This is done to prevent the 
presence of whitespace nodes resulting in violations of the required 
content of an element in the XSLT namespace.  Consider the following 
stylesheet fragment:

<xsl:template match="/">
  <out xml:space="preserve">
    <xsl:attribute name="attr">value</xsl:attribute>
  </out>
</xsl:template>

The preserved whitespace node in this example always results in a 
recoverable syntax error (XT0410).  The Working Group should consider the 
possibility of stripping from the stylesheet any whitespace node that has 
a following-sibling node that is an xsl:attribute element.

Thanks,

Henry
[Speaking on behalf of reviewers from IBM.]
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com

Received on Thursday, 19 February 2004 11:51:54 UTC