The USXSL Value Method

Previous Next

See Also

The USXSL value method retrieves a value from an XML document, by an XPath reference. If the XML document does not start with "<" it is assumed to be a file reference to an XML document file.


SELECT USXSL.value(<xml document>, <XPath expression>

           [,<namespace list>])

Where <xml document> can be:

· A literal XML document.


· A file name.


· A URL.


· An alias previously added by the setxml method.

The second, <XPath expression> parameter, is an XPath expression.


For necessary information about XPath expressions and namespaces, please refer to a decent XSL/XPath book or other documentation source.

If there is no result of the XPath expression then the output of the Value method is empty. If there are more node results the output contains the first value.

The optional <namespaces> parameter is a list of namespace mappings for prefixes used in the XPath expression separated by spaces.