xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Staub <est...@kana.com>
Subject RE: Preventing arithmetic parsing of expressions that look like a rith metic
Date Tue, 31 Oct 2000 14:38:58 GMT
You need to quote the string inside the select:

<xsl:param name="season" select="'2000-01'"/> <!-- default season -->

If my name seems familiar, I worked with a Steve Cohen 12 years ago...

-Ed Staub

-----Original Message-----
From: Steve Cohen [mailto:SteveC@ignitemedia.com]
Sent: Monday, October 30, 2000 4:45 PM
To: general@xml.apache.org
Subject: Preventing arithmetic parsing of expressions that look like
arith metic


I define a parameter in a stylesheet:

<xsl:param name="season" select="2000-01"/> <!-- default season -->

When I output the value of "$season" somewhere, I get "1999".  It is
performing the subtraction it thinks I want.  Is there some way to prevent
this from happening?  I want to have a single parameter, called "season" to
be interpreted as a string.

Steve Cohen
Sr. Software Engineer
Ignite Sports Media
stevec@ignitemedia.com 

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

Mime
View raw message