Changes

Jump to navigation Jump to search
1,042 bytes added ,  12:12, 29 January 2011
no edit summary
|- valign="top" scope="row"
|<code>XPST0003</code>
|An error occurred while ''parsing'' the query string (i.e., before the query could be compiled and executed). This error is the most common one, and may be accompanied by a variety of different error messages.|<code>1+<hr/>for i in //* return $i</code>
|- valign="top" scope="row"
|<code>XPST0005</code>
|<code>$a---<hr/>element(*, x)</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(1,2,3)</code>
|- valign="top" scope="row"
|<code>XPST0051<br/>&nbsp;</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<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/>(# pragma #) { 1 }</code>
|}
 
==XPTY: Type Errors==
 
{| class="wikitable" width="100%"
! width="5%"|Code
! width="70%"|Description
! width="25%"|Examples
|- valign="top" scope="row"
|<code>XPTY0004</code>
| This error is raised if an expression has the wrong type, or cannot be cast into the specified type. It may be raised both statically (during query compilation) or dynamically (at runtime).
|<code>1 + "A"<hr/>fn:abs("a")<hr/>1 cast as xs:gYear</code>
|- valign="top" scope="row"
|<code>XPTY0018</code>
| The result of the last step in a path expression contains both nodes and atomic values.
|<code>doc('input.xml')/(*, 1)</code>
|- valign="top" scope="row"
|<code>XPTY0019</code>
| The result of a step (other than the last step) in a path expression contains an atomic values.
|<code>(1 to 10)/*</code>
|}
In progress...
 
{| class="wikitable" width="100%"
! width="5%"|Code
! width="70%"|Description
! width="25%"|Examples
|- valign="top" scope="row"
|<code></code>
|
|<code></code>
|}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu