xsl-list
[Top] [All Lists]

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

2011-11-30 07:27:00
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. 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>

But that is needed very seldom, I think. It's more often used in named
templates, e.g.

  <xsl:call-template name="baz">
      <xsl:with-param name="foo" select="'bar'" as="xs:string"/>
  </xsl:call-template>

You aren't using the "parameter" anyway, so omit it.

+1

Kind regards...
Susanne 

--~------------------------------------------------------------------
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>