skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » URI » string GetRelativeTo (string uriAsString, string anchorUriAsString)
string GetRelativeTo (string uriAsString, string anchorUriAsString)
 
Convert an absolute URI into a relative URI.
Exceptions:
OutOfMemoryException
Thrown when a low memory situation occurs.
Parameters:
uriAsString
The URI as string.
anchorUriAsString
The anchor URI as string.
Returns:
The relative to.
Determine the relative path to http://www.webworks.com/css/webworks.css from http://www.webworks.com/information/index.html.
<xsl:variable name="VarRelativeURI" select="wwuri:GetRelativeTo('http://www.webworks.com/css/webworks.css', 'http://www.webworks.com/information/index.html')" />
Was this helpful?
Last modified date: 10/14/2020