Attributes | Values |
---|
described by
| |
Description
| - Calls an XQuery module from XPath expression, e.g. from some XSLT or BPEL code. This function takes a URI of an XQuery module and an XML entity and calls the module with the entity as a context. Depending on value of index parameter, either the result of the module is returned 'as is' or the sequence of results is returned. Parameters can be passed to the module by specifying additional arguments to processXQuery(). The names of parameters should appear in argument list without the leading '$' sign. Unlike xquery_eval() function, parameter can not be ignored depending on the type of its value. If the same name appears more than once in the vector, the last name/value pair is used and all preceding pairs with this name are silently ignored. Obviously, names should be strings that are valid XPath variable names. The XQuery standard does not offer a way of calling of a module from other XQuery expression. The reason is that there's no need for such calling if the code is designed properly. If an expression is re-used in various places then it should be turned into a function and placed into an XQuery library module; one should import the module and call the function instead of calling a non-library module. It is possible to use processXQuery() in XQuery expressions but it is much better to use library modules instead, and to use processXQuery() only for tricks in XPATH expressions.
|
Creator
| - virtuoso.docs@openlinksw.com
|
Date
| - 2013-07-11T21:22:54Z
- 2015-02-05T21:17:51Z
|
Title
| |
type
| |
content:encoded
| - Calls an XQuery module from XPath expression, e.g. from some XSLT or BPEL code.
This function takes a URI of an XQuery module and an XML entity and
calls the module with the entity as a context.
Depending on value of index parameter,
either the result of the module is returned 'as is' or the sequence of results is returned.
Parameters can be passed to the module by specifying additional arguments
to processXQuery().
The names of parameters should appear in argument list without the leading '$' sign.
Unlike xquery_eval() function, parameter
can not be ignored depending on the type of its value.
If the same name appears more than once in the vector, the last name/value pair is
used and all preceding pairs with this name are silently ignored.
Obviously, names should be strings that are valid XPath variable names.
The XQuery standard does not offer a way of calling of a module from other XQuery expression.
The reason is that there's no need for such calling if the code is designed properly.
If an expression is re-used in various places then it should be turned into a function and
placed into an XQuery library module; one should import the module and call the function instead of
calling a non-library module. It is possible to use processXQuery()
in XQuery expressions but it is much better to use library modules instead, and to use
processXQuery() only for tricks in XPATH expressions.
|
rss:category
| |
is topic
of | |
is rdf:_796
of | |