xsl-list
[Top] [All Lists]

Re: Retrieving Parameters Values from an XSLT Transform

2005-03-02 08:57:02

From: Varley, Roger [mailto:Roger(_dot_)Varley(_at_)atosorigin(_dot_)com]
What I had in mind was to
use the javax.xml.transform.Transformer object in my calling program and
pass it an empty string using setParameter(), assign the parameter a value
during the XSLT transform and then call getParameter() after the transform
has finished?

You cannot change the value of a parameter/variable in standard XSLT, so there should be no reason for an XSLT proccessor to return parameters back to you.

The reason I'm asking is that I have an application that receives an XML
datastream through a servlet. The servlet formats the XML into a
"user-friendly" text file via the Transformer class and attaches the result
to an e-mail. I've now been asked to include data from the XML document into
the title of the e-mail.

Just retreive the information you need from the source or result document using the XML API of your choice.

Manos

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>