Re: [xsl] forwarding only existing parameter

Subject: Re: [xsl] forwarding only existing parameter
From: Guillaume Rousse <rousse@xxxxxxxxxxxxxx>
Date: Mon, 17 Sep 2001 19:29:03 +0200
Ainsi parlait Tony Graham :
[..]
> <template match="specific-item1">
>   <param name="context"/>
>   <variable name="real-context">
>     <choose>
>        <when test="$context">
>           <value-of select="$context"/>
>        </when>
>        <otherwise>default value</otherwise>
>     </choose>
>   </variable>
>
>   [..]
> </template>
I finally used this solution, as it keeps the logic in one place, rather than 
spread it everywhere in the stylesheet.
Thanks to all.
-- 
Guillaume Rousse <rousse@xxxxxxxxxxxxxx>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread