RE: ACTION 2016-09-22-001 on MK and Abel to run the Relax-NG / Jing test and report results and/or bugs

In addition, it may be worthwhile to check Mike's comments in answer to Charles' bug in https://www.w3.org/Bugs/Public/show_bug.cgi?id=29887, these fixes for XSD may also need to be updated in RelaxNG.

From: Abel Braaksma [mailto:abel.braaksma@xs4all.nl] 
Sent: Thursday, October 13, 2016 5:54 PM
To: Public XSLWG
Subject: ACTION 2016-09-22-001 on MK and Abel to run the Relax-NG / Jing test and report results and/or bugs

I have run a few tests and the main bug I found has to do with QNames. For instance, the following validates correctly:

<xsl:function name="test"></xsl:function>

But an unqualified name is not allowed as a function name.

Conversely, I noticed that the following is allowed by RNC:

<xsl:template name="xsl:foo" />

But it isn't. The XSL namespace is reserved, except for the special name xsl:initial-template.

Also, the following validated correctly, not sure why, it clearly isn't a QName or EQName.

<xsl:function name="f:x:test" >

I have not tested whether these rules are similarly lenient with XSD. Obviously, it won't be possible to validate everything, as some values are context dependent in a way that cannot be checked with RNG. My knowledge or RelaxNG is too limited to know what the extent is to what we can test.

I did notice that it was very up-to-date, that is, xsl:source-document, for instance, was allowed, xsl:stream was not. Also, most errors were rather clear, which is good, of course. 

All in all, 

Received on Thursday, 13 October 2016 15:57:25 UTC