Changes

Jump to navigation Jump to search
986 bytes added ,  11:40, 29 January 2011
no edit summary
It summarizes all error codes that may be thrown by the BaseX XQuery processor.
As the official specifications are written too formal to be easilyunderstood, we tried our best to make this article comprehensibleto everyone. The following tables include the error code that israised by BaseX, a description, and examples of queries raisingthat error. ==XPST: Static Errors==
{| class="wikitable" width="100%"
!width="5%"|Code!width="70%"|Description!width="25%"|Examples
|- valign="top" scope="row"
|<code>XPST0003</code>
|- valign="top" scope="row"
|<code>XPST0017<br/>&nbsp;</code>
| The specified function is unknown, or <br />• it uses the wrong number of arguments .|<code>fn:unknown()<hr/>fn:count(i.e.1,2, it does not match the 3)</code>|- valign="top" scope="row"|<code>XPST0051<br/>&nbsp;</code>| An unknown QName is used in a ''name'' and ''aritysequence type'' (e.g. target type of the existing function signatures<code>cast</code> expression).|<code>fn1 instance of x<hr/>"test"&nbsp;cast&nbsp;as&nbsp;xs:itr</code>|- valign="top" scope="row"|<code>XPST0080<br/>&nbsp;</code>| <code>xs:NOTATION</code> or <code>xs:anyAtomicType</code> is used as target type of <code>cast</code> or <code>castable</code>.|<code>1 castable as xs:NOTATION</code>|- valign="top" scope="row"|<code>XPST0081<br/>&nbsp;</code>| • A QName uses a prefix that has not been bound to any namespace, or<br />• A pragma or option declaration has not been prefixed.|<code>unknown():x<hr/>count(# pragma #){ 1 }</code>
|}
 
In progress...
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu