[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Passing a parameter to the xsl file itself
Sure you can pass a parameter to a transformation. Declare the parameter in a global xsl:param element, and pass the required value using the transformer.setParameter() method. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Simon Kelly > Sent: 22 April 2003 11:45 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Passing a parameter to the xsl file itself > > > Hi all, > > I have a transform I need to perform on multiple relational > data sets. The xsl will not change in structure from go to > go, but I need to change a certain name within the transform > each time. Unfortunately this data is not contained within > the relational data either, but is known by the java code > that is executing the relational search and then the > transform. Is there a way to tell the xsl stylesheet this > information, without having to edit the xsl itself? > > Cheers > > Simon > > > Institut fuer > Prozessdatenverarbeitung > und Elektronik, > Forschungszentrum Karlsruhe GmbH, > Postfach 3640, > D-76021 Karlsruhe, > Germany. > > Tel: (+49)/7247 82-4042 > E-mail : kelly@xxxxxxxxxx > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|