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

[Bug 6238] New: CVS: K2-NameTest-22

From: <bugzilla@wiggum.w3.org>
Date: Wed, 19 Nov 2008 17:09:46 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-6238-523@http.www.w3.org/Bugs/Public/>

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

           Summary: CVS: K2-NameTest-22
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


This query, which tests the resolution of Bug 5351, incorrectly expects an
error.

Quoting Bug 5351:

"The name test shown in this bug report will always result in a dynamic error. 
In its teleconference on 2008-01-08, the WG decided (because the error, caused
by a string literal, can be caught statically) to make it a type error
(XPTY0004) if the string literal of a PI name test cannot be converted to an
NCName."

Here, the string literal can be converted to a valid NCName using the
constructor xs:NCName('b ').


(:*******************************************************:)
(: Test: K2-NameTest-22                                  :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: A processing-instruction() with an invalid NCName in a string
litera
l. :)
(:*******************************************************:)
empty(let $e := <a b ="content"><?b asd?><b/></a>
              return $e/processing-instruction("b "))


-- 
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, 19 November 2008 17:09:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:38 UTC