|
|
|
From: Eric Anderson <ejona86@xxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Subject: xsl:param
Date: Fri, 22 Jul 2005 14:54:32 -0500
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jP2woJSAtFOptddkaMJT7iV/98y9fmPX4dWp1ln+MIr1zuvUiU3qfmdGThTI6APvjUa13aEzPudwZB1VPfzvqfXKUKyuBGEHPWWDxDh/LEfaxeBe35K7cpAYN9aT/mnuYaFDnu0AsOx2LSK0QKJPECQkzfVuUM9C/DuJOSbW2oI=
Reply-to: Eric Anderson <ejona86@xxxxxxxxx>
I was wanting to pass an argument to an xsl style sheet. So I have:
.htaccess:
...
XSLTParam "viewsource" "abc"
XSLTDefaultStylesheet "text/xml" "xhtml.xsl"
xhtml.xsl:
<xsl:stylesheet ...>
...
<xsl:param name="viewsource" select="'a'"/>
...
<xsl:template match="/">
...
<xsl:value-of select="$viewsource"/>
...
</xsl:template>
...
</xsl:stylesheet>
I would use "$GET[viewsource]" instead of "abc" in the end, but this
provides one less way for me to mess up. Likewise, I have the
select="'a'" so that I can see that I am using the variable correctly.
So what I would expect to get is 'abc.' However, I am getting the
default 'a.' Does anyone know where I could have gone wrong?
-Eric Anderson
| |
|