Subject: RE: 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: 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 |
|
M. David Peterson - Fri, 16 Apr 2004 16:21:24 -0400 (EDT) <=
David Carlisle - Fri, 16 Apr 2004 18:41:10 -0400 (EDT)
Michael Kay - Sat, 17 Apr 2004 04:29:25 -0400 (EDT)
Passin, Tom - Fri, 16 Apr 2004 17:24:17 -0400 (EDT)
bryan . s . schnabel - Fri, 16 Apr 2004 18:39:30 -0400 (EDT)
|
|