Next in thread → Next in month →

Re: [xml-dev] Questions on Initializing Parameters for XSL

From
Jeni Tennison <>
To
Richard <>
Date
2003-01-31T17:48:50Z
ID
<>
Thread
Re: [xml-dev] 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 ; see
http://www.mulberrytech.com/xsl/xsl-list for details.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Next in thread → Next in month →