Subject: RE: [xsl] Passing a parameter to the xsl file itself From: "Michael Kay" <mhk@xxxxxxxxx> Date: Tue, 22 Apr 2003 14:25:07 +0100 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Passing a parameter to the xs, Simon Kelly | Thread | [xsl] calculate depth of an xml-tre, Florian Bauer |
RE: [xsl] calculate depth of an xml, Michael Kay | Date | RE: [xsl] Deciding a parameter name, Michael Kay |
Month |