You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sc...@lotus.com on 2000/09/26 20:27:59 UTC
Re: Passing parameters of unknown (to xalan) type to Xalan processor. Instantiating
XObject
> Is it permitted to pass XObject and not one of the concrete subclasses?
Yes, that is the intention.
-scott
"Roytman,
Alex" To: "'xalan-dev@xml.apache.org'" <xa...@xml.apache.org>
<roytmana@peac cc: (bcc: Scott Boag/CAM/Lotus)
etech.com> Subject: Passing parameters of unknown (to xalan) type to Xalan
processor. Instantiating XObject
09/26/00 01:02
PM
Please respond
to xalan-dev
I am using parameters to pass different class instances to xalan processor
using
processor.setStylesheetParam("httpContext", new XObject(httpContextState));
in stylesheet I use those parameters to initialize my extentions (which are
stateless wrappers designed to work with the state they receive from a
xalan
parameter)
<xsl:variable name="httpContextOk" select="http:init($httpContext)"/>
My concern is whether it is proper way of doing it. I use XObject (which
has
UNKNOWN type) to pass my instances not one of the subclasses (like XString
...) Is it permitted to pass XObject and not one of the concrete
subclasses?
Right now it works just fine but will it work the same way in future
versions (may be XObject will become abstract ...)
Thank you in advance
Alex Roytman