This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
See: http://www.w3.org/2010/xslt-xquery-serialization/schema-for-parameters-for-xslt-xquery-serialization.xsd#encoding The regexp in this schema for encoding-string-type is: <xs:pattern value="[A-Za-z]([A-Za-z0-9._]|'-')*"/> That pattern does not match, for example, UTF-8, which is a required encoding name. I believe the pattern should be <xs:pattern value="[A-Za-z]([A-Za-z0-9._]|-)*"/> without the single-quotes around the hyphen character. I made this change locally and it worked, at least. I read through the XML schema regexp documentation at: http://www.w3.org/TR/xmlschema-2/#regexs and did not find anything that suggested that single quotes can be used in this way, but if I misunderstood it please let me know.
Yes, I agree. That was obviously a typographical error on my part. I am responding on my own behalf - not on the behalf of the XSLT and XQuery working groups.
At the joint teleconference of the XQuery and XSLT working groups of 20 September 2011, the working groups decided to resolve this problem by changing the regular expression for encoding-string-type to the following. <xs:pattern value="[A-Za-z][A-Za-z0-9._\-]*"/>
I believe that Henry intended to mark this bug as RESOLVED/FIXED when he posted comment #3 on 2011-09-20. In that belief, I am so marking the bug. Chris, if you accept Henry's posted resolution, please mark the bug CLOSED.
Henry's regexp works; I have updated our product (Zorba) accordingly. Thanks.