[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: passing parameters to templates

Subject: Re: passing parameters to templates
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 16 Jun 2003 23:09:51 +0200
Re:  passing parameters to templates
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: Re:
    • Tim Bachta - Mon, 16 Jun 2003 16:48:21 -0400 (EDT)
      • Ritu - Mon, 16 Jun 2003 17:00:12 -0400 (EDT)
      • J.Pietschmann - Mon, 16 Jun 2003 17:10:28 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.