Description
The functx:fragment-from-uri function returns the fragment part of a URI, which appears after a hash mark. If there is no fragment, a zero-length string is returned.
Arguments and Return TypeName | Type | Description |
$uri |
xs:string? |
the URI |
return value |
xs:string? |
XQuery Function DeclarationSee XSLT definition. | declare namespace functx = "http://www.functx.com";
declare function functx:fragment-from-uri
( $uri as xs:string? ) as xs:string? {
substring-after($uri,'#')
} ; |
ExamplesXQuery Example | Results |
---|
functx:fragment-from-uri(
'http://datypic.com/index.htm#abc') |
abc |
functx:fragment-from-uri(
'http://datypic.com/index.htm') |
zero-length string |
See AlsoHistory |
Recommended Reading:
|