<?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>4920</bug_id>
          
          <creation_ts>2007-08-07 18:53:11 +0000</creation_ts>
          <short_desc>IdentityConstraint tests: valid xpath combinations no accepted</short_desc>
          <delta_ts>2010-04-23 15:46:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema Test Suite</product>
          <component>Microsoft tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Michael Chan">mhpchan</reporter>
          <assigned_to name="Henry S. Thompson">ht</assigned_to>
          <cc>David_E3</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="XML Schema Test Suite mailing list">public-xml-schema-testsuite</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16082</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Chan">mhpchan</who>
    <bug_when>2007-08-07 18:53:11 +0000</bug_when>
    <thetext>Testcases affected:
msData/identityConstraint/idI014.xsd
msData/identityConstraint/idI016.xsd
msData/identityConstraint/idI022.xsd
msData/identityConstraint/idJ015.xsd
msData/identityConstraint/idJ017.xsd
msData/identityConstraint/idJ030.xsd

According to the &quot;3.11.6 Constraints on Identity-constraint Definition Schema Components&quot;, the above schemas have valid xpath combinations and should be tested using valid scenarios.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31476</commentid>
    <comment_count>1</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-05 11:47:13 +0000</bug_when>
    <thetext>14 and 16 at least look to me to have unbound ns prefixes in their XPaths, but 
I agree that 22 looks OK -- needs careful review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31478</commentid>
    <comment_count>2</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2010-02-05 11:49:26 +0000</bug_when>
    <thetext>Hmmm, re-reading the XPath whitespace rules leaves me less sure about 22 -- 
care is clearly  needed here</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33713</commentid>
    <comment_count>3</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-03-19 15:42:04 +0000</bug_when>
    <thetext>Michael Kay will run these tests through his processor and report the results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33714</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-03-19 16:15:04 +0000</bug_when>
    <thetext>Saxon reports all these tests as invalid. They all fail for the same reason: whitespace is used where it is not allowed, either within a NameTest or within the token &quot;//&quot;. Specifically, the offending lines are:

I014:
&lt;xsd:selector xpath=&quot;tid :*&quot;/&gt;

I016:
&lt;xsd:selector xpath=&quot;tid : *&quot;/&gt;

I022:
&lt;xsd:selector xpath=&quot;./ /.&quot;/&gt;

J015:
&lt;xsd:field xpath=&quot;xpns :*&quot;/&gt;

J017:
&lt;xsd:field xpath=&quot;xpns : *&quot;/&gt;

J030:
&lt;xsd:field xpath=&quot;./ /.&quot;/&gt;

XPath 1.0 does not allow a space in the middle of these constructs (NameTest and // are both tokens). XSD 1.0 says the same thing. The relevant rules are in 3.11.6:

&lt;quote&gt;
For readability, whitespace may be used in selector XPath expressions even though not explicitly allowed by the grammar: whitespace may be freely added within patterns before or after any token.
[5] token ::= &apos;.&apos; | &apos;/&apos; | &apos;//&apos; | &apos;|&apos; | &apos;@&apos; | NameTest
[6] whitespace ::= S
&lt;/quote&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35229</commentid>
    <comment_count>5</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-04-23 15:45:29 +0000</bug_when>
    <thetext>WG decided that the tests, marked as invalid, are appropriately so marked.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>