functx:fragment-from-uri
Returns the fragment from a URI
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.
Parameters |
Description |
---|---|
uri:string() |
the URI |
Examples
XPath |
Results |
---|---|
functx:fragment-from-uri(‘http://datypic.com/index.htm#abc’) |
abc |
functx:fragment-from-uri(‘http://datypic.com/index.htm’) |
zero-length string |