Subject: [xsl] Putting a param into <link /> From: "Simon Kelly" <kelly@xxxxxxxxxx> Date: Wed, 12 Mar 2003 10:34:36 +0100 |
Hi all, I am trying to make all of my xsl-t's as portable as possible for the project I am creating, but have come up against a problem I can't find an answer for in the books. I want to pass the project (and base uri name) into all references as a parameter, but when the page is transformed into html the href still has $project and not the project name. (See below) I tried ${project} but this just left the $ in by itself. Any pointers would be most appreciated. Cheers Simon <xsl:variable name="project" select="/root/session/projectName" /> ....... <xsl:param name="project" /> <head> <!-- Title for each page --> <title><xsl:value-of select="$pageTitle" /></title> <!-- link for the stylesheet that will format all of our pages in the same manner --> <link rel="stylesheet" type="text/css" href="/$project/css/styles.css" /> Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : kelly@xxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Calculate with XML/XSL, cknell | Thread | Re: [xsl] Putting a param into <lin, Marco Guazzone |
[xsl] Calculate with XML/XSL, Asim Tozlu | Date | RE: [xsl] Putting a param into <lin, Jarno . Elovirta |
Month |