Subject: RE: [xsl] Putting a param into <link /> From: Jarno.Elovirta@xxxxxxxxx Date: Wed, 12 Mar 2003 12:37:38 +0200 |
Hi, > Unfortunately, it doesn't seem too work. The param is not > going into an > <xsl:...> tag, but into a html tag. The variable is set in > the main xsl > style sheet, and the actual <xsl:template ... /> is in an > included helper > xsl stylesheet. (I think I'm right in saying that the param > name needs to > match the variable name to do this!?!) > > So, > <xsl:variable name="project" select="/root/session/projectName" /> [in > main.xsl] > ....... > <xsl:param name="project" /> [in inc_main.xsl] > ....... > <link rel="stylesheet" type="text/css" > href="/{$project}/css/styles.css" /> > [in inc_main.xsl] See <http://www.w3.org/TR/xslt#local-variables>, the variable shadowing bit. Use different variable/parameter names. Cheers, Jarno - Assemblage 23: Document (Ultimate-Gloom-Mix By Echo Image) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Putting a param into <lin, Marco Guazzone | Thread | [xsl] 2 XML source, David Alcantara |
Re: [xsl] Putting a param into <lin, Marco Guazzone | Date | [xsl] 2 XML source, David Alcantara |
Month |