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

RE: servlet to xsl

Subject: RE: servlet to xsl
From: shaik <shaik_xml@xxxxxxxxx>
Date: Wed, 12 Jun 2002 20:56:10 -0700 (PDT)
britannic isa
Hi,

Could you please tell me how could i get the set
Parameter in .xsl ? 

In servlet i have written the code as:
--------------------
Transformer tf  = tfac.newTransformer( new
StreamSource(tree_xsl) );

tf.setParameter("xslSpec",strSpec);
tf.transform( new DOMSource(tree),
                           new DOMResult(tmpdoc) );
------------------
and in .xsl file 
xmlns:java included to use jdk classes in xslt
  <xsl:template match="rating-and-specifications">
  	<xsl:value-of select="java:"/>
  </xsl:template>

Is this correct ?
 
In javax.xml.transform.Transformer there is one method
getParameter(String).

How should i get the set parameter in .xsl ?

Thanks
Shaik

--- "PATEL, DINESH (ISD)" <PATELD@xxxxxxxxxxxxxxx>
wrote:
> 
> You can pass values by parameter as strings.
>
javax.xml.transform.Transform.setParameter(xsl-var-name,
> servlet-var-name)
> 
> 
> > -----Original Message-----
> > From:	shaik [SMTP:shaik_xml@xxxxxxxxx]
> > Sent:	Wed 12 June 2002 07:06
> > To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:	 servlet to xsl
> > 
> > Hi All,
> > 
> > Is it possible to get the values which are in the
> > request object(in Servlet) in XSL ?
> > 
> > Thanks & Regards
> > Shaik
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> > 
> >  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 
> ************
> This email and any accompanying documents are
> intended only for the named recipient, are
> confidential and may be privileged. If you are not
> the intended recipient please notify us immediately
> by mailto:admin@xxxxxxxxxxxxxxx and you must not
> copy, disclose or otherwise use this message.
> Unauthorised use is strictly prohibited and may be
> unlawful. The content of this email represents the
> view of the individual and not the company. The
> company reserves the right to monitor the content of
> all emails in accordance with lawful business
> practice.
> 
> Whilst attachments are virus checked before
> transmission, Britannic Assurance plc does not
> accept any liability in respect of any virus which
> is not detected.
> 
> Britannic Assurance plc, No.3002 is registered in
> England and maintains its registered office at 1
> Wythall Green Way, Wythall, Birmingham B47 6WG.
> Telephone: 0870 887 0001
> Fax: 0870 887 0002
> Website: www.britannicassurance.com
> 
> Britannic Assurance plc, Britannic Unit Linked
> Assurance Limited, Britannic ISA Managers Limited
> and Britannic Unit Trust Managers Limited are
> regulated by the Financial Services Authority. Each
> of these companies is a member of the Britannic
> marketing group which only advises on and sells its
> own life assurance, pension, unit trust and ISA
> products.
> ************
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

 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.