- From: <bugzilla@jessica.w3.org>
- Date: Tue, 18 Sep 2012 01:42:36 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18838 --- Comment #3 from Michael Dyck <jmdyck@ibiblio.org> 2012-09-18 01:42:36 UTC --- Note that an empty <xqx:versionDecl> is schema-valid, so the question of how the (normative) XQueryX-to-XQuery stylesheet handles such a thing is independent of whether the (non-normative) XQuery-to-XQueryX converter generates such a thing. ----------------------------------- re the XQuery-to-XQueryX converter: The code doesn't say why it generates: <xqx:versionDecl> <!-- encoding: "utf-8" --> </xqx:versionDecl> instead of: <xqx:versionDecl> <xqx:encoding>utf-8</xqx:encoding> </xqx:versionDecl> (It's been doing so since the earliest version of the converter that I can find, dated 2005-10-16.) I suspect it's because the encoding of the original XQuery query isn't (or shouldn't be?) pertinent to the encoding of the resulting XQueryX query. Of course, we don't require that the declared encoding be correct ("since the encoding of a query may change as the query moves from one environment to another"), so it wouldn't be wrong to include the <xqx:encoding>. Personally, I think I'd prefer an <xqx:encoding> over a comment (or no <xqx:versionDecl>), because the test suite has certain tests whose point is to elicit XQST0087 (malformed encoding string), and the corresponding XQueryX tests (generated by the converter) currently don't do so, because the offending encoding string is in a comment. ------------------------------------ re the XQueryX-to-XQuery stylesheet: The XQueryX spec doesn't guarantee that the stylesheet will transform every schema-valid XQueryX query into a valid XQuery query, so producing xquery ; (1 eq 1) is not technically wrong. However, it is undesirable. Probably the stylesheet should transform an empty <xqx:versionDecl> into the empty string, as you suggest. -- Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Tuesday, 18 September 2012 01:42:38 UTC