|-
| valign='top' | '''Errors'''
|<b>'''[[XQuery Errors#BaseX Errors|BASX0002]]</b> ''' is raised if {{Mono|$db}} is a referenced node that is not stored in a database(i.e., references a main-memory XML fragment).<br /><b>'''[[XQuery Errors#Functions Errors|FOCA0002]]</b> ''' is raised if <code>$name</code> is no valid QName.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>'''[[XQuery Errors#BaseX Errors|BASX0002]]</b> ''' is raised if {{Mono|$db}} is a referenced node that is not stored in a database(i.e., references a main-memory XML fragment).<br /><b>'''[[XQuery Errors#Functions Errors|FOCA0002]]</b> ''' is raised if <code>$name</code> is no valid QName.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>'''[[XQuery Errors#BaseX Errors|BASX0002]]</b> ''' is raised if {{Mono|$db}} is a referenced node that is not stored in a database(i.e., references a main-memory XML fragment).
|-
| valign='top' | '''Examples'''