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 Type| Name | Type | Description |
$uri |
xs:string? |
the URI |
| return value |
xs:string? |
XSLT Function Declaration| See XQuery definition. | | XSLT 2.0 Syntax: |
|---|
<xsl:function name="functx:fragment-from-uri" as="xs:string?"
xmlns:functx="http://www.functx.com" >
<xsl:param name="uri" as="xs:string?"/>
<xsl:sequence select="
substring-after($uri,'#')
"/>
</xsl:function>
|
Examples| XSLT 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 |
|