[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Value-of varible question


Subject: RE: [xsl] Value-of varible question
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Fri, 16 Apr 2004 14:21:02 -0600

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@xxxxxxxxxxxxxxxxx] 
Sent: Friday, April 16, 2004 2:14 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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[@lang=$local]"/>
		</Title>
	</xsl:template>
But this will
<xsl:template match="Title">
		<Title>
			<xsl:copy-of
select="/iThink.ePulp/Page/Content/Meta/Title[@lang='en-EN']"/>
		</Title>
	</xsl:template>

Does anyone know why and is there a way I can get around it?


Current Thread