<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13688</bug_id>
          
          <creation_ts>2011-08-05 22:09:19 +0000</creation_ts>
          <short_desc>[Ser30] Incorrect regexp for output:encoding in xslt-xquery-serialization.xsd</short_desc>
          <delta_ts>2011-10-12 07:20:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Serialization 3.0</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Hillery">chillery-w3cbugs</reporter>
          <assigned_to name="Henry Zongaro">zongaro</assigned_to>
          <cc>jim.melton</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54261</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Hillery">chillery-w3cbugs</who>
    <bug_when>2011-08-05 22:09:19 +0000</bug_when>
    <thetext>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:

  &lt;xs:pattern value=&quot;[A-Za-z]([A-Za-z0-9._]|&apos;-&apos;)*&quot;/&gt;

That pattern does not match, for example, UTF-8, which is a required encoding name.

I believe the pattern should be

  &lt;xs:pattern value=&quot;[A-Za-z]([A-Za-z0-9._]|-)*&quot;/&gt;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54375</commentid>
    <comment_count>1</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2011-08-08 12:49:52 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57043</commentid>
    <comment_count>2</comment_count>
    <who name="Henry Zongaro">zongaro</who>
    <bug_when>2011-09-20 16:37:44 +0000</bug_when>
    <thetext>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.

  &lt;xs:pattern value=&quot;[A-Za-z][A-Za-z0-9._\-]*&quot;/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57985</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2011-10-08 19:04:41 +0000</bug_when>
    <thetext>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&apos;s posted resolution, please mark the bug CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58106</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Hillery">chillery-w3cbugs</who>
    <bug_when>2011-10-12 07:20:11 +0000</bug_when>
    <thetext>Henry&apos;s regexp works; I have updated our product (Zorba) accordingly. Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>