xsl-list
[Top] [All Lists]

Re: Problem with case-sensitivity

2004-10-01 02:04:15
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




<Prev in Thread] Current Thread [Next in Thread>