|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Putting a param into <link />
[1]<snip>
> You want
>
> foo="{$project}"
>
> Cheers,
...</snip>
[2]<snip>
> Second, you have to surround the reference to $project inside the href
> attribute with "{...}"; i.e.:
> <link rel="stylesheet" type="text/css" href="/{$project}/css/styles.css"
/>
...</snip>
Thanks Jarno[1] and Marco[2].
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]
just gives
<link rel="stylesheet" type="text/css" href="//css/styles.css" />
as the rendered output.
Is there any way of using <xsl:text /> to insert this data??
Cheers
Simon
>
> Jarno - This Morn'Omina: One Eyed Man ... brilliant song!!!
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








