Re: [xsl] Passing external values into xsl stylesheet to select portions of xml file (apache/cocoon)

Subject: Re: [xsl] Passing external values into xsl stylesheet to select portions of xml file (apache/cocoon)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 3 Sep 2001 16:46:12 +0100

> 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


Current Thread