viv:url-normalize

normalizes a URL to add standard, but missing, information

Synopsis

string
	viv:url-normalize
	(url);
string    url;

Description

Normalize a URL to add missing information, such as the "http://" prefix, and remove extraneous or unnecessary characters such as anchors and double slashes in the path.

Arguments

  • url: the URL to normalize.

Returns

the normalized URL.

Example

    <xsl:value-of select="viv:url-normalize('vivisimo.com/html//solutions?x=1&amp;#abc')"/>

Calling the previous function will return the following:

    http://vivisimo.com/html/solutions?x=1