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

Putting a param into <link />

Subject: Putting a param into <link />
From: "Simon Kelly" <kelly@xxxxxxxxxx>
Date: Wed, 12 Mar 2003 10:34:36 +0100
html link param
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

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.