This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Passing external values into xsl stylesheet to select portions of xml file (apache/cocoon)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Passing external values into xsl stylesheet to select portions of xml file (apache/cocoon)
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 3 Sep 2001 16:46:12 +0100
- References: <20010903134204.71756.qmail@web20401.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I've looked at <xsl:variable> ...but these always seem
> to be set to a defined value INSIDE the xsl document.
use <xsl:param name="xx" value="0"/> at the top level, ie not in a template.
you give a default value (0, here) in the stylesheet but you may then
pass in values when calling the stylesheet (the syntax for calling a
stylesheet or passing it values is not specified by XSLT, it depends on
the implementation)
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