Subject: Re: [xsl] forwarding only existing parameter From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 17 Sep 2001 12:46:48 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] forwarding only existing para, Guillaume Rousse | Thread | Re: [xsl] forwarding only existing , Guillaume Rousse |
RE: [xsl] exclude-result-prefixes, Dmitri Ilyin | Date | Re: [xsl] exclude-result-prefixes, Jörg Heinicke |
Month |