Re: [xsl] passing parameters to templates

Subject: Re: [xsl] passing parameters to templates
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 16 Jun 2003 23:38:25 +0200
Tim Bachta wrote:

That works but I cannot use it that way.  Is it possible to pass the
parameter using just <xsl:apply-templates/> not having to select a
specific template to pass the parameter to?

It is possible, because <xsl:apply-templates/> is just a short for <xsl:apply-templates select="node()"/> You still have to ensure that either BeginEndDate is matched (i.e. a child of the context element at the point where you apply the templates), or pass the parameter through any intermediately called templates explicitely.

J.Pietschmann



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


Current Thread