|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Value-of varible question
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?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








