I get the same result when using v2.4.1. 
The following piece of code works when evaluating local variables, but not
for parameters. Is there a similar way to evaluate paramteters?

XPathContext xctxt = context.getTransformer().getXPathContext();
XPath myxpath = new XPath("$VarName", elem, xctxt.getNamespaceContext(), 0);
XObject xobj = myxpath.execute(xctxt, context.getContextNode(), elem);
String strVarVal = xobj.str();

Thanks,

Paul

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 27 November 2002 17:59
To: Paul Brady
Cc: '[EMAIL PROTECTED]'
Subject: Re: Passing params to an extension element

We fixed a lot of extension problems in Xalan 2.4.1. Please try with this
latest release to see if it fixes your problem.

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



 

                      Paul Brady

                      <[EMAIL PROTECTED]        To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>           
                      la.com>                  cc:

                                               Subject:  Passing params to
an extension element                                    
                      11/27/2002 12:30

                      PM

 

 




I'm trying to pass an <xsl:param> into an extension element using Xalan
2.3.1.

If I do something like:
    <xsl:template name="DocletContentBody">
        <xsl:param name="docletTemplate"/>

        <dynamicTemplate:dynamicCallTemplate name="$docletTemplate">
            <xsl:call-template name="doesntMatter">
            </xsl:call-template>
        </dynamicTemplate:dynamicCallTemplate>
    </xsl:template>

where dynamicTemplate is my extension element, the value of the name
attribute evaluates to "$docletTemplate" rather than the value of the
parameter.

Any ideas?

Paul.




Reply via email to