xsl-list
[Top] [All Lists]

RE: Value-of varible question

2004-04-16 13:25:39
-----Original Message-----
From: John Hamman [mailto:John(_at_)iThinkdesigns(_dot_)com]

For some reason this won't work 
<xsl:param name="local" select="en-EN"/>
<xsl:template match="Title">
              <Title>
                      <xsl:copy-of
select="/iThink.ePulp/Page/Content/Meta/Title[(_at_)lang=$local]"/>
              </Title>
      </xsl:template>
<snip />
 
Does anyone know why and is there a way I can get around it?

Yes. Use :

<xsl:param name="local" select="'en-EN'" />

(mind the quotes..)


Cheers,

Andreas