Changes

Jump to navigation Jump to search
137 bytes removed ,  15:22, 29 January 2011
no edit summary
that error.
==XPST: Static XPath Errors: XSPT, XQST==
{| class="wikitable" width="100%"
|A variable or type name is used that has not been defined in the current scope.
|<code>$a---<hr/>element(*, x)</code>
|- valign="top" scope="row"
|<code>XQST0009</code>
| The query imports a schema (schema import is not supported by BaseX).
|<code>import schema "x"; ()</code>
|- valign="top" scope="row"
|<code>XPST0017</code>
| • The specified function is unknown, or<br />• it uses the wrong number of arguments.
|<code>fn:unknown()<hr/>fn:count(1,2,3)</code>
|- valign="top" scope="row"
|<code>XPST0051</code>
| An unknown QName is used in a ''sequence type'' (e.g. in the target type of the <code>cast</code> expression).
|<code>1 instance of x<hr/>"test"&nbsp;cast&nbsp;as&nbsp;xs:itr</code>
|- valign="top" scope="row"
|<code>XPST0080</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</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/>(# pragma #) { 1 }</code>
|}
 
==XQST: Static XQuery Errors==
 
{| class="wikitable" width="100%"
! width="5%"|Code
! width="65%"|Description
! width="30%"|Examples
|- valign="top" scope="row"
|<code>XQST0009</code>
| The query imports a schema (schema import is not supported by BaseX).
|<code>import schema "x"; ()</code>
|- valign="top" scope="row"
|<code>XQST0022</code>
| A module declaration does not match the namespace of the specified module.
|<code>import module namespace invalid="uri"; 1</code>
|- valign="top" scope="row"
|<code>XPST0051</code>
| An unknown QName is used in a ''sequence type'' (e.g. in the target type of the <code>cast</code> expression).
|<code>1 instance of x<hr/>"test"&nbsp;cast&nbsp;as&nbsp;xs:itr</code>
|- valign="top" scope="row"
|<code>XQST0049</code>
| A pragma was specified without the expression that is to be evaluated.
|<code>(# xml:a #) {}</code>
|- valign="top" scope="row"
|<code>XPST0080</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</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/>(# pragma #) { 1 }</code>
|- valign="top" scope="row"
|<code>XQST0085</code>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu