[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: param - default settings

Subject: Re: param - default settings
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Tue, 30 Oct 2001 12:42:49 +0100
Re:  param - default settings
On Tue, Oct 30 '01 at 13:16, Oleg Tkachenko wrote:
> >>  <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
> I don't think so, 1 belongs to number type, not to node-set, so the 
> param will contain just 1 as number.
Okey, I'm sorry youre right, but this only works for numbers. If I was
to say
<xsl:param name="bla" select="foo"/>
it would try to select all foo nodes (in the current scope)

> > <xsl:param name="abs" select="'1'"/>
> And this one will contain 1 as string.
Yes, but as XSL-T is not strongely typed, it will seam to work like a number

> > <xsl:param name="abs">1</xsl:param>
> And this one as RTF with the only text node that in turn contain 1 as 
> string value.
But works for the same reasons

But you're right, both do not result in real numbers 
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.

Attachment: pgp00024.pgp
Description: PGP signature

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.