Re: [xsl] passing parameters to templates

Subject: Re: [xsl] passing parameters to templates
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 16 Jun 2003 23:09:51 +0200
Tim Bachta wrote:
Tried that with no luck.

This probably means no parameter was passed to the template. You'll have to have a <xsl:apply-templates select="..."> <xsl:with-param name="report_name" select="'foo'"/> </xsl:apply-templates> which selects a BeginEndDate to match.

In your case either you never passed a parameter to any
template, or there was a default template interfering.

It is best to learn how to use template parameters with
small test cases rather than full blown production code.

If you want to use a stylesheet parameter, define the
<xsl:param> as child of <xsl:stylesheet>. You still have
to pass the parameter value from the outside using a processor
specific mechanism.

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • RE: [xsl] Re:
    • Tim Bachta - Mon, 16 Jun 2003 15:50:12 -0500
      • Ritu - Mon, 16 Jun 2003 15:58:36 -0500
      • J.Pietschmann - Mon, 16 Jun 2003 23:09:51 +0200 <=