Converts $string-var that contains a URI (Uniform Resource Identifier Reference) to the anyURI data type.
If the value of $string-var is the empty sequence, the empty sequence is returned. The empty sequence is a sequence containing zero items (), which is similar to null in SQL.
xs:anyURI(xs:string $string-var) —> xs:anyURI
Represents the conversion string that contains the URI (Uniform Resource Identifier Reference) |
Returns the $string-var converted to anyURI data type.
When you invoke the following query:
<result>{xs:anyURI("http://www.acme.org/")}</result>
The preceding query generates the following result:
<result>http://www.acme.org/</result>
W3C anyURI data type description