[Bug 13688] New: Incorrect regexp for output:encoding in xslt-xquery-serialization.xsd

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13688

           Summary: Incorrect regexp for output:encoding in
                    xslt-xquery-serialization.xsd
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization 3.0
        AssignedTo: zongaro@ca.ibm.com
        ReportedBy: chillery-w3cbugs@lambda.nu
         QAContact: public-qt-comments@w3.org


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.

-- 
Configure bugmail: http://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 Friday, 5 August 2011 22:09:21 UTC