title: URL encoding with XSLT 1.0
body: <p>I have a problem writing my XSL. I have a link with the following code:</p>
  
  <pre><code>&lt;a&gt;
  &lt;xsl:attribute name="href"&gt;
    &lt;xsl:value-of select="concat($myUrl,'&amp;amp;projectNumber=',$projectNumber)"/&gt;
  &lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="title"&gt;
    &lt;xsl:value-of select="title"/&gt;
  &lt;/xsl:attribute&gt;
  LINK
  &lt;/a&gt;
  </code></pre>
  
  <p>So I need to pass a variable <code>projectNumber</code> to the end of <code>myUrl</code>. This works just fine and I get <code>...myUrl...&amp;projectNumber=...projectNumber...</code> in HTML. </p>
  
  <p>The problem is, that the variable <code>projectNumber</code> sometimes has some characters which have to be escaped in the href of my link. I tried using the XSL function <code>str:escape-uri()</code> in many different ways, but still no success...</p>
  
  <p>For example if myUrl is <code>www.example.com/example.aspx?a=b</code> and projectNumber is <code>aaaūaaa</code>
  I get href like <code>www.example.com/example.aspx?a=b&amp;projectNumber=aaaūaaa</code>, but I need to get <code>www.example.com/example.aspx?a=b&amp;projectNumber=aaa%C5%ABaaa</code>. (<code>%C5%AB</code> is the way that 'ū' is escaped) Any suggestions? Thanks.</p>