[Bug 5269] [XQueryX] No way to represent K2-NameTest-21 in XQueryX

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

           Summary: [XQueryX] No way to represent  K2-NameTest-21 in XQueryX
           Product: XPath / XQuery / XSLFO / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX
        AssignedTo: jim.melton@acm.org
        ReportedBy: oliver@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


The XQTS test K2-NameTest-21 is as follows:

empty(let $e := <a b ="content"><?b asd?><b/></a>
              return $e/processing-instruction("123ncname"))

This is a valid (although not very useful) query.

However, there is no way to represent this in XQueryX.

The schema requires an xs:NCName as the processing instruction target in an
<xqx:piTest> element.  Perhaps this should be relaxed to an xs:string to allow
compatibility with the above query?

A similar problem occurs in K2-NameTest-23

Received on Thursday, 15 November 2007 16:40:51 UTC