This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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




> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]