RE: [xsl] Retrieving Parameters Values from an XSLT Transform

Subject: RE: [xsl] Retrieving Parameters Values from an XSLT Transform
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 2 Mar 2005 09:51:49 -0600
Hi Roger,

> I've now been asked to include data from the XML document into the title
of the e-mail.

No need to pass in an empty parameter, whatfor? Just extract the title data
from the XML using XSL, and then pass this to the servlet just like it
passes the message.

HTH,
<prs/>

-----Original Message-----
From: Varley, Roger [mailto:Roger.Varley@xxxxxxxxxxxxxx] 
Sent: Wednesday, March 02, 2005 4:48 AM
To: Xsl-List (E-mail)
Subject: [xsl] Retrieving Parameters Values from an XSLT Transform

Hi

This might be a numpty question but here goes. I know that I can pass
parameters to an XSLT stylesheet, but can I do this in reverse - set the
value of the parameter within my XSLT stylesheet and then access the
assigned value once the transform has finished? 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?

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.

Regards
Roger


__________________________________________________________________________
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the sender
endeavours to maintain a computer virus-free network, the sender does not
warrant that this transmission is virus-free and will not be liable for any
damages resulting from any virus transmitted.
__________________________________________________________________________

Current Thread