This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: param - default settings
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] param - default settings
- From: Goetz Bock <bock at blacknet dot de>
- Date: Tue, 30 Oct 2001 11:43:56 +0100
- References: <3BDE7216.3030304@globalpark.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Tue, Oct 30 '01 at 10:25, Ingo Friepoertner wrote:
> I start processing my xml/xsl files with some param's.
>
> I thought I could define default values if some param's were not set .
> But this doesn't work:
>
> <xsl:param name="abs" select="1" />
This would select the value of the <1> node in the current context,
there is no such node and the nodename is invalid anyway
but
<xsl:param name="abs" select="'1'"/>
or
<xsl:param name="abs">1</xsl:param>
both work.
--
Goetz Bock IT Consultant
Dipl.-Inf. Univ.
PGP signature