W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2006

[Bug 3446] [XQueryX] constructing attribute values with whitespace characters

From: <bugzilla@wiggum.w3.org>
Date: Mon, 31 Jul 2006 13:09:43 +0000
To: public-qt-comments@w3.org
Message-Id: <E1G7XWh-0002Ao-R2@wiggum.w3.org>


------- Comment #8 from davidc@nag.co.uk  2006-07-31 13:09 -------
In addition to quoting all white space in attribute values, the stylesheet
needs to quote (just) #13 in strings, otherwise it interacts badly with the
XQuery line ending normalisation. essentially the rule needs to be that because
the stylesheet is using xsl:output method="text" it needs to do "by hand" all
the XML quoting that would be automatic if  xsl:output method="xml" were used,
as the XQuery white space rules are designed to mimic the XML ones.


should evaluate to 2 It should (I claim) be encoded in XQueryX as shown below,
but the stylesheet generates

on that with literal #13 and #10 characters which are merged into a single #10
when parsed, so this expression evaluates to 1.

If the stylesheet followed the rules of the serialisation spec's xml output,
then #13 would be serialised as &#13; (or something equivalent) and it would
then not be normalised to #10 on parsing.


<xqx:module xmlns:xqx="http://www.w3.org/2005/XQueryX">
Received on Monday, 31 July 2006 13:09:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:13 UTC