MarkLogic 9 Product Documentation
admin:database-excluded-elementadmin:database-excluded-element(
$namespace as xs:string?,
$localname as xs:string,
[$attribute-namespace as xs:string?],
[$attribute-localname as xs:string],
[$attribute-value as xs:string]
) as element(db:excluded-element)
Summary
This function constructs an excluded element specification.
Parameters |
namespace |
The namespace URI. Specify an empty string if the
element is in no namespace.
|
localname |
The local name for the node.
|
attribute-namespace |
The namespace URI for the constraining attribute.
|
attribute-localname |
The localname for the constraining attribute.
|
attribute-value |
The value for the constraining attribute.
|
Usage Notes
If the third parameter is included, the fourth
and fifth must also be included. These parameters are for
constraining the excluded element based on a particular
attribute value.
Example
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:database-excluded-element("http://myuri/namespace",
"element-name")
(: the constructed element :)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.