title: How to do I18N with xsl and xml
body: <p>I am trying to do a page in different languages with xml/xsl. I want to have only one xml and one xsl. On my page Url I have a parameter pLanguage that I think I can use to look if I have selected English or Dutch.</p>
  
  <p>I tried with this code but I don’t know how I put it together:</p>
  
  <p>First I make variables of all the words who has to been translated like this:</p>
  
  <pre><code>&lt;xsl:variable name="lang.pageTitle" select="'This is the title in English'"/&gt;
  </code></pre>
  
  <p>To get the pageTitle in the template I now can use </p>
  
  <pre><code>&lt;xsl:value-of select="$lang.pageTitle"/&gt;
  </code></pre>
  
  <p>I thought to replace the first line of code above by using a if-else statement to test if my choosen language is EN or NL like this:</p>
  
  <pre><code>&lt;xsl:choose&gt;
        &lt;xsl:when test="$choosenLanguage &amp;#61; ‘NL’"&gt;
          &lt;xsl:variable name="lang.pageTitle" select="Titel in het nederlands'"/&gt;
        &lt;/xsl:when&gt;
        &lt;xsl:otherwise&gt;
          &lt;xsl:variable name="lang.pageTitle" select="'This is the title in English'"/&gt;
        &lt;/xsl:otherwise&gt;
      &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>But I get the error: 
  java.lang.IllegalArgumentException: can't parse argument number $lang.opdracht</p>