- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 16 Sep 2005 13:13:15 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2261
Summary: [xqueryx] function names
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XQueryX
AssignedTo: jim.melton@acm.org
ReportedBy: davidc@nag.co.uk
QAContact: public-qt-comments@w3.org
Currently xqx:functionName allows any Qname which means that several XqueryX
documents using this element translate to node tests such as node() or element()
that use a function-like syntax but are not functions.
It would be good if the schema declaration could use a facet to stop the node
test keywords being used as function names, unfortunately XSD can't do this
(unlike, say, Relax NG) as it can not restrict the content of the element based
on the non-appearance of the xqx:prefix attribute.
However the stylesheet could easily be modified to generate an error in these cases.
David
Received on Friday, 16 September 2005 13:13:20 UTC