ePublisher Platform XSLT Extensions
 
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')" />