[Bug 5323] Bug in XQueryX applet

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

           Summary: Bug in XQueryX applet
           Product: XPath / XQuery / XSLFO / XSLT
           Version: Working drafts
          Platform: PC
               URL: http://www.w3.org/2005/qt-applets/xqueryApplet.html
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQueryX
        AssignedTo: jim.melton@acm.org
        ReportedBy: mike@spertus.com
         QAContact: public-qt-comments@w3.org


When I insert the following example (from Priscilla Walmsley's XQuery book)
into the XQuery Grammar Test Page and Translate to XQueryX, the XQueryX output
does not validate against the XQueryX schema.

<ul>{
   for $product in doc("catalog.xml")/catalog/product
   where $product/@dept='ACC'
   order by $product/name
   return $product/name
}</ul>

The output fails to validate from XMLSpy v2008 sp1 with the error "Element
<xqx:argExpr> is not allowed under element <xqx:pathExpr>."

Note that this is hardly an obscure example, as it is the first illustrative
example of a FLWOR query in Walmsley's book, which suggests that the Applet (or
the XQuery Schema) may be broken for many XQueries.

Received on Sunday, 16 December 2007 18:20:24 UTC