<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"  
  xmlns:service="xalan://org.vortikal.web.view.LinkConstructor" 
  xmlns:uio="http://www.uio.no/vortex/xsl-parameters" 
  exclude-result-prefixes="#default uio">

  <xsl:param name="uio:LinkConstructor" />

  <!-- 
       this template constructs a link to a resource/service
       combination defaulting to the current resource/service, adding,
       if specified, the comma separated list of parameter name/value
       pairs on the form: 'param1=value1,param2=value2' 

       If an empty string is returned, something went wrong
    -->
  <xsl:template name="construct-link">
    <xsl:param name="resource-uri" />
    <xsl:param name="link-parameters-csv" />
    <xsl:param name="service-name" />

    <xsl:value-of select="service:construct($uio:LinkConstructor, 
                          $resource-uri, 
                          $link-parameters-csv,
                          $service-name)" />
  </xsl:template>


</xsl:stylesheet>
