[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Value-of varible question

Subject: RE: Value-of varible question
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Fri, 16 Apr 2004 14:21:02 -0600
xsl set varible value
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.