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

  previous   Chronological   next       previous   Thread   next  

Re: [mod-xslt users] xsl:param Carlo Contavalli
  • From: Carlo Contavalli <ccontavalli@xxxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Re: [mod-xslt users] xsl:param
  • Date: Tue, 26 Jul 2005 16:10:03 +0200
  • References: <6cd02f8c050722125412e04574@mail.gmail.com>


  • On Fri, Jul 22, 2005 at 02:54:32PM -0500, Eric Anderson happily wrote:
    > ...
    > XSLTParam "viewsource" "abc"
    > XSLTDefaultStylesheet "text/xml" "xhtml.xsl"
    >
    > [...]
    > 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?
    currently, due to different naming conventions for variables,
    modxslt variables are only accessible using modxslt extensions.

    Take a look to mod-xslt2 extensions for more details. Something
    like:
    <xsl:stylesheet version="1.0"
    extension-element-prefixes="yaslt"
    xmlns:yaslt="http://www.mod-xslt2.com/ns/1.0";
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >
    [...]

    <yaslt:value-of select="$MODXSLT[variable]" />

    may just do what you need :)

    Cheers,
    Carlo

    --
    GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
    -------------
    No spitting on the Bus!
    Thank you, The Mgt.

      Powered by Sympa