|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Questions on Initializing Parameters for XSL
Hi Richard, > I've got a question on XSL parameter setting. There are two ways to > init the value of a parameter; one is to use > transformer.setParameter(), another is to use <xsl:parameter > ...select="" />. My question is: which one is overridden another? my > understanding is the transformer one gonna override the xsl one. Is > it true? (You mean <xsl:param name="..." select="..." />.) You're correct: the parameter declaration in the stylesheet gives a default value for the parameter, which can be overridden by the code that executes the stylesheet. In a similar way, a parameter declaration in a template gives the default value for a parameter that can be overridden by the code that calls the template. Questions on XSLT are best directed to XSL-List@m...; see http://www.mulberrytech.com/xsl/xsl-list for details. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
|
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
|
|||||||||






