Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

xsl:param Eric Anderson
  • 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

      Powered by Sympa