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: forwarding only existing parameter



> I'm trying to forward parameters from a template to another, only if they are 
> defined, in the most simple way.

variables and parameters are always defined in XSLT. If a definition of
a variable x is not in scope then you can not use $x so there is no
possibilty of asking if x is defined.

Why can't you just always pass on the value of your parameter?
by choosing a suitable default value you should be able to determine
which case you are in in your code.

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]