[Bug 4315] [XSLT] Whitespace stripping for attributes of type character

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





------- Comment #3 from mike@saxonica.com  2007-03-16 11:56 -------
The WG reviewed the comment and agreed it was desirable to firm up the wording.

I have reviewed all the element proformas, and I agree with the commenter that
the only cases where we should keep leading and trailing whitespace are those
where the stated type is string or char. Henry's proposed wording for this
looks fine.

There's one possible case where the old rule would (perhaps) trim whitespace
and the new rule doesn't: the flags attribute of xsl:analyze-string. For
simplicity I propose that we don't treat this specially. This means whitespace
will not be allowed in this attribute, which is consistent with the rules for
the $flags argument of functions such as matches().

Received on Friday, 16 March 2007 11:56:38 UTC