[Home] [By Thread] [By Date] [Recent Entries]


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/


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member