xsl-list
[Top] [All Lists]

Re: [xsl] can a value of a parameter depends on a other value

2011-11-30 08:07:03
On 30 November 2011 14:26, Susanne Wunsch 
<xsl(_at_)uriah(_dot_)heep(_dot_)sax(_dot_)de> wrote:
Wolfgang Laun <wolfgang(_dot_)laun(_at_)gmail(_dot_)com> writes:

A parameter is only applicable to a named template, and
<xsl:with-param> is used with the call, not the definition.

No.

Kindly note that I did not write "...used *only* with the call...", and that...

You can also use <xsl:with-param> within <xsl:apply-templates>, e.g.

 <xsl:apply-templates select="*">
     <xsl:with-param name="foo" select="'bar'" as="xs:string"/>
 </xsl:apply-templates>

<xsl:apply-template> is akin to a call, albeit not via a name.

-W

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>