Converts the specified relative URL to the absolute one against the specified context URI (that must be an absolute URL or absolute file pathname).
Parameters:
spec
Specifies the relative URL that should be converted to the absolute one.If this is already an absolute URL, it will be returned unchanged.
context
Specifies the context absolute URL (or absolute file pathname), against which the relative URL should be resolved.
Returns:
The converted absolute URL.If there was an error during the parsing of the provided parameter values (e.g. malformed URL specifications), the original
spec
value will be returned.
Example 1:
The following call:
will return string:resolveURL ( "some.xml", "http://www.myorg.org/xml/some.xsd" )
"http://www.myorg.org/xml/some.xml"
Example 2:
This call:
will return string:resolveURL("some.xml", "c:\\myxml\\some.xsd")
"file:/c:/myxml/some.xml"