|}
==Function Errors (FOAR, FOCA, FOCH, FODC, FODT, FODF, FOFD, FONS, FORG, FOER, FORX)==
{| class="wikitable" width="100%"
| The URI passed to <code>fn:resolve-URI()</code> is invalid.
|<code>resolve-URI(":")</code>
|- valign="top" scope="row"
|<code>FORG0003</code>
| <code>fn:zero-or-one()</code> was called with more than one item.
|<code>zero-or-one((1, 2))</code>
|- valign="top" scope="row"
|<code>FORG0004</code>
| <code>fn:one-or-more()</code> was called with zero items.
|<code>one-or-more(())</code>
|- valign="top" scope="row"
|<code>FORG0005</code>
| <code>fn:exactly-one()</code> was called with zero or more than one item.
|<code>exactly-one((1, 2))</code>
|- valign="top" scope="row"
|<code>FORG0006</code>
| A wrong argument type was specified in a function call.
|<code>sum((1, "string"))</code>
|- valign="top" scope="row"
|<code>FORG0008</code>
| The arguments passed to <code>fn:dateTime()</code> have different timezones.
|<code>dateTime(xs:date("2001-01-01+01:01"), current-time())</code>
|-
| colspan=3 |
| Error triggered by the <code>fn:error()</code> function.
|<code>error()</code>
|-
| colspan=3 |
|- valign="top" scope="row"
|<code>FORX0001</code>
| A function specifies an invalid regular expression flag.
|<code>matches('input', 'query', 'invalid')</code>
|- valign="top" scope="row"
|<code>FORX0002</code>
| A function specifies an invalid regular expression.
|<code>matches('input', '[')</code>
|- valign="top" scope="row"
|<code>FORX0003</code>
| A regular expression matches an empty string.
|<code>tokenize('input', '.?')</code>
|- valign="top" scope="row"
|<code>FORX0004</code>
| The replacement string of a regular expression is invalid.
|<code>replace("input", "match", "\")</code>
|}
Still to be finished…