[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xalan-J 2 and getParameter(...) method returns nul

Subject: Re: Xalan-J 2 and getParameter(...) method returns null???
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Fri, 05 Jul 2002 16:58:05 +0200
transformer xml getparameter
from the Trax documentation:

public abstract java.lang.Object getParameter(java.lang.String name)
Get a parameter that was explicitly set with setParameter or setParameters.
This method does not return a default parameter value, which cannot be determined until the node context is evaluated during the transformation
process.
Returns:
A parameter that has been set with setParameter.


Cheers,
Johannes




Hello,

I am trying to get a parameter from an xsl stylesheet using the getParameter method using the org.apache.xalan.transformer.TransformerImpl class. In my xsl style sheet I have listed as a top element:
===
<xsl:param name="someparam">somevalue</xsl:param>
===


but in trying:
===
Transformer transformer = TransformerFactory.newInstance().newTransformer(new StreamSource("c:\\temp\\temp.xsl"));
transformer.getParameter("someparam");
===


I get null back! Shouldn't I get back the string 'somevalue'. Does it only work when setParameter(...) gets called? then How do get the value back from the stylesheet??

I am using Xalan-J 2.4.D1

Thanks again,

Sean.


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.