You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Victor M. Moreno" <vm...@germinus.com> on 2001/08/06 09:39:00 UTC
converting Transformer's result into NodeSet
Hello,
I would like to know how can I convert the result of a xalan transformation
into a NodeSet.
So far I am trying:
NodeSet funcion1(..)
{
DOMResult resultado=new DOMResult();
transformer.transform(new StreamSource("banner.xml"), resultado);
return resultado;
}
Obviously here I got an error type message.
Is ther any other better way for this necessary transformation?
Thanks
Victor
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
XALAN. Setting object into the transformation machine
Posted by "Victor M. Moreno" <vm...@germinus.com>.
Hello,
before a transformation is made I can set parameters into the transformation
machine using
the setParameter function.
public abstract void setParameter(java.lang.String name, java.lang.Object
value)
With that I can set String parameter, is there a way to set OBJECTS as
parameter into the
transformation machine?
Thanks
Victor
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
Re: converting Transformer's result into NodeSet
Posted by "Victor M. Moreno" <vm...@germinus.com>.
Thanks Gary,
that worked fine! ;)
regards
Victor
----- Original Message -----
From: "Gary L Peskin" <ga...@firstech.com>
To: <ge...@xml.apache.org>
Sent: Monday, August 06, 2001 11:45 PM
Subject: Re: converting Transformer's result into NodeSet
> I'm not sure what you're trying to accomplish here but how about:
>
> return new Nodeset(resultado.getNode());
>
> Gary
>
> "Victor M. Moreno" wrote:
> >
> > Hello,
> > I would like to know how can I convert the result of a xalan
transformation
> > into a NodeSet.
> >
> > So far I am trying:
> >
> > NodeSet funcion1(..)
> > {
> > DOMResult resultado=new DOMResult();
> > transformer.transform(new StreamSource("banner.xml"), resultado);
> >
> > return resultado;
> > }
> >
> > Obviously here I got an error type message.
> > Is ther any other better way for this necessary transformation?
> >
> > Thanks
> >
> > Victor
> >
> > ---------------------------------------------------------------------
> > In case of troubles, e-mail: webmaster@xml.apache.org
> > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
> > For additional commands, e-mail: general-help@xml.apache.org
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail: webmaster@xml.apache.org
> To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org
Re: converting Transformer's result into NodeSet
Posted by Gary L Peskin <ga...@firstech.com>.
I'm not sure what you're trying to accomplish here but how about:
return new Nodeset(resultado.getNode());
Gary
"Victor M. Moreno" wrote:
>
> Hello,
> I would like to know how can I convert the result of a xalan transformation
> into a NodeSet.
>
> So far I am trying:
>
> NodeSet funcion1(..)
> {
> DOMResult resultado=new DOMResult();
> transformer.transform(new StreamSource("banner.xml"), resultado);
>
> return resultado;
> }
>
> Obviously here I got an error type message.
> Is ther any other better way for this necessary transformation?
>
> Thanks
>
> Victor
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail: webmaster@xml.apache.org
> To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
---------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org