- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 11 Jul 2006 15:50:40 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3446 ------- Comment #2 from davidc@nag.co.uk 2006-07-11 15:50 ------- (non WG response) > Do we need additional markup in order to preserve char refs such as these? > Something like the following: No, I don't think so, I think that the stylesheet should either quote the white space while writing the attribute as XQuery and XSLT serialisers do when writing attributes in xml or html output (the xquery text is written with xsl:output method="text" which is why the "attribute" is not automatically quoted here). the stylesheet already has template for quoting characters and applies it to & and { it just needs to do white space as well. (It would be easier in xslt2, but it's not hard, just tedious to do it in xslt1, see bug #1285) alternatively of course xqx:attributeConstructor could be converted to a computed attribute constructor If Xquery processes attribute attr {"a b"} it does automatically quote the newline in the result, so in that case the stylesheet would not have to do anything, although the error behaviour is slightly different in that case (duplicate direct attribute constructors are reported statically with a different error code than duplicate attributes generated by a computed element constructor). David
Received on Tuesday, 11 July 2006 15:50:57 UTC