viv:url-key

creates a key from a URL by normalizing it

Synopsis

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

Description

Create a key from a url (for de-duplication purposes) by normalizing it. This is similar to the normalize action in a regex parser with type set to url.

Arguments

  • url: the URL to normalize.

Returns

the normalized form of the URL which should be saved as the key attribute of a document.

Example

    <document url="{doc/@url}" key="{viv:url-key(doc/@url)}">
    ...
    </document>