Within XML a number of datatypes are defined. The data, dateTime and time are easy to understand and convert since the exact location of each measurement unit is known. E.g. the month is always on character 6 and 7. The duration however is a much more complex datatype to represent date and or time. Espessially when we need to convert a complex duration of e.g. 1 year, 2 months and 4 minutes to seconds.
An URL contains a full path to a specific peace of information or the execution of a service. In some cases it is necessary to get the individual parts from the URL in XSLT stylesheets. This XSLT routine get any URL and decodes it into individual parts.