This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: forwarding only existing parameter
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@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list