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

RE: Putting a param into <link />

Subject: RE: Putting a param into <link />
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 12 Mar 2003 12:37:38 +0200
RE:  Putting a param into <link />
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

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.