Re: [xsl] About <xsl:param> and <xsl:with-param>

Subject: Re: [xsl] About <xsl:param> and <xsl:with-param>
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Nov 2002 13:18:57 GMT
  "javax.xml.transform.TransformerException: xsl:with-param is not allowed in
  this position in the stylesheet!"

  Why?!

xsl:param has to be the first eleemnt of xsl:stylesheet or xsl:template
It specifies a parameter to the template. xsl:for-each does not take a
parameter.


parameters and variables in XSLT, as for all declarative programming
languages, do not change their value once bound, so within a given
template any occurrence of your parameter will always have th esame
value, although of course you can call the template multiple times with
different values for the parameter each time.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread