W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2011

[Bug 14909] New: Is method-type pattern in the serialization schema not well defined?

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Nov 2011 14:20:49 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-14909-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14909

           Summary: Is method-type pattern in the serialization schema not
                    well defined?
           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: gabipetrovay@gmail.com
         QAContact: public-qt-comments@w3.org


http://www.w3.org/2010/xslt-xquery-serialization/schema-for-parameters-for-xslt-xquery-serialization.xsd
defines

<xs:simpleType name="method-type">
  <xs:union>
    <xs:simpleType>
      <xs:restriction base="xs:string">
        <xs:enumeration value="html"/>
        <xs:enumeration value="text"/>
        <xs:enumeration value="xml"/>
        <xs:enumeration value="xhtml"/>
      </xs:restriction>
    </xs:simpleType>
    <xs:simpleType>
      <xs:restriction base="xs:QName">
        <xs:pattern value=".*:.*"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:union>
</xs:simpleType>

Does this make the following values valid method parameter values:
":"
":my-method"
"my-method:"

?

Why not having the pattern being:
<xs:pattern value=".+:.+"/>
?

".*:.*" is anyway a super-group of the valid QNames. What is actually wanted
is: ".+:.+".

-- 
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 Wednesday, 23 November 2011 14:20:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:36 UTC