Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Problem with case-sensitivity


Subject: Re: [xsl] Problem with case-sensitivity
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Fri, 01 Oct 2004 12:04:15 +0300

Luke Ambrogio wrote:

thanks alot, that explains it but something else is going wrong now

<xsl:param name="upperCase" select="ABCDEFGHIJKLMNOPQRSTUVWXYZ"/>
<xsl:param name="lowerCase" select="abcdefghijklmnopqrstuvwxyz"/>
<xsl:value-of select="$upperCase" />
<xsl:value-of select="$lowerCase"/>

outputs nothing, any ideas?



Right, the value of the select attribute is evaluated as an XPath expression looking for an element name of ABC...


You actually have to let XPath know you are talking about a string, not an element name (note the quotes)

<xsl:param name="upperCase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>

or

<xsl:param name="upperCase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:param>

sorry about that :-)

Manos


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords