[xsl] Use of variables in XSLT

Subject: [xsl] Use of variables in XSLT
From: "Kaarle Kaila" <kaarle.kaila@xxxxxx>
Date: Sat, 20 Dec 2003 12:22:33 +0200
Why do I have to use the variables in my XSLT stylesheet in at least three
different ways?
Assuming I have declared my variable as
<xsl:variable name="type" select="one" />

I some where must refer to is as:

1. <xsl:value-of select="$type"/>

somewhere else as

2. {$type}

and somewhere as

3. $type

Kaarle Kaila

Kaarle Kaila
email: kaarle dot kaila at iki dot fi

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread