Changes

Jump to navigation Jump to search
966 bytes added ,  18:46, 16 January 2016
no edit summary
|
* {{Code|db:attribute-range("DB", "id456", "id473", 'id')}} returns all {{Code|@id}} attributes of the database {{Code|DB}} that have a string value in between {{Code|id456}} and {{Code|id473}}.
|}
 
==db:token==
 
{{Mark|Introduced with Version 8.4:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:token|$db as xs:string, $token as item()|attribute()*}}<br/>{{Func|db:token|$db as xs:string, $token as item(), $attname as xs:string|attribute()*}}
|-
| '''Summary'''
|Returns all attribute nodes of the database {{Code|$db}} the value of which contains the specified {{Code|$token}}.<br />If {{Code|$attname}} is specified, the resulting attribute nodes are filtered by their attribute name.
|-
| '''Errors'''
|{{Error|BXDB0002|XQuery Errors#BaseX Errors}} the addressed database does not exist or could not be opened.<br/>{{Error|BXDB0004|Database Module#Errors}} the index is not available.<br/>
|-
| '''Examples'''
|
* {{Code|db:token("DB", "row", "class")/parent::div}} returns all {{Code|div}} nodes of database {{Code|DB}} with a {{Code|class}} attribute that contains the token {{Code|row}}.
|}
=Changelog=
 
;Version 8.4
* Added: [[#db:token|db:token]]
;Version 8.3
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu