<?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>14909</bug_id>
          
          <creation_ts>2011-11-23 14:20:48 +0000</creation_ts>
          <short_desc>Is method-type pattern in the serialization schema not well defined?</short_desc>
          <delta_ts>2011-11-23 16:48:43 +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>RESOLVED</bug_status>
          <resolution>INVALID</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="Gabriel Petrovay">gabipetrovay</reporter>
          <assigned_to name="Henry Zongaro">zongaro</assigned_to>
          <cc>mike</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>60377</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriel Petrovay">gabipetrovay</who>
    <bug_when>2011-11-23 14:20:48 +0000</bug_when>
    <thetext>http://www.w3.org/2010/xslt-xquery-serialization/schema-for-parameters-for-xslt-xquery-serialization.xsd defines

&lt;xs:simpleType name=&quot;method-type&quot;&gt;
  &lt;xs:union&gt;
    &lt;xs:simpleType&gt;
      &lt;xs:restriction base=&quot;xs:string&quot;&gt;
        &lt;xs:enumeration value=&quot;html&quot;/&gt;
        &lt;xs:enumeration value=&quot;text&quot;/&gt;
        &lt;xs:enumeration value=&quot;xml&quot;/&gt;
        &lt;xs:enumeration value=&quot;xhtml&quot;/&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
    &lt;xs:simpleType&gt;
      &lt;xs:restriction base=&quot;xs:QName&quot;&gt;
        &lt;xs:pattern value=&quot;.*:.*&quot;/&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  &lt;/xs:union&gt;
&lt;/xs:simpleType&gt;

Does this make the following values valid method parameter values:
&quot;:&quot;
&quot;:my-method&quot;
&quot;my-method:&quot;

?

Why not having the pattern being:
&lt;xs:pattern value=&quot;.+:.+&quot;/&gt;
?

&quot;.*:.*&quot; is anyway a super-group of the valid QNames. What is actually wanted is: &quot;.+:.+&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60379</commentid>
    <comment_count>1</comment_count>
    <who name="Gabriel Petrovay">gabipetrovay</who>
    <bug_when>2011-11-23 14:32:02 +0000</bug_when>
    <thetext>I know the final valid type is an intersection of the base type and the pattern in the restriction. Still, &quot;.+:.+&quot; would make the expected value explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60381</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-11-23 15:09:24 +0000</bug_when>
    <thetext>I think the pattern as given is actually OK. There are two conditions: it must be a valid QName, and it must contain a colon. The type as defined achieves this. It would be possible to specify a more restrictive pattern such as &quot;.+:.+&quot;, but this is unnecessary as this would only exclude strings such as &quot;:&quot; which are not valid QNames in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60382</commentid>
    <comment_count>3</comment_count>
    <who name="Gabriel Petrovay">gabipetrovay</who>
    <bug_when>2011-11-23 15:27:27 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think the pattern as given is actually OK. There are two conditions: it must
&gt; be a valid QName, and it must contain a colon. The type as defined achieves
&gt; this. It would be possible to specify a more restrictive pattern such as
&gt; &quot;.+:.+&quot;, but this is unnecessary as this would only exclude strings such as &quot;:&quot;
&gt; which are not valid QNames in the first place.

Yes, I understand that &quot;.*:.*&quot; is the minimum pattern that still enforces the validity of the method-type. If this is the reasoning behind, than this i not an issue anymore.

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>