OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]

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@mulberrytech.com; see
http://www.mulberrytech.com/xsl/xsl-list for details.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS