At first glance you have your select attribute of your param set to the
element name of en-EN as opposed to the string literal of 'en-EN' I
would also use xsl:variable in this situation unless you are passing a
value from another template to this one, then you will need to keep it
param.
Change that select attribute to a string literal (e.g. select="'en-EN'")
and if you still have troubles respond back and Ill try to look a bit
deeper for any other issues blocking your path.
Best of luck!
<M:D/>
-----Original Message-----
From: John Hamman [mailto:John(_at_)iThinkdesigns(_dot_)com]
Sent: Friday, April 16, 2004 2:14 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Value-of varible question
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>
But this will
<xsl:template match="Title">
<Title>
<xsl:copy-of
select="/iThink.ePulp/Page/Content/Meta/Title[(_at_)lang='en-EN']"/>
</Title>
</xsl:template>
Does anyone know why and is there a way I can get around it?
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--