[xsl] Case conversion and document()

Subject: [xsl] Case conversion and document()
From: Jean-Francois Lefebvre <jean-francois.lefebvre@xxxxxxxxxx>
Date: Fri, 25 Feb 2005 12:39:36 -0500
Hi everyone.

I'm new in the XSL arena, I have a problem with which I'm stuck.<

Please, look at this code.

<xsl:template match="class">
<xsl:document href="{$directory}{@name}.hpp" method="text">
...
</xsl:document>
</xsl:template>

My question is simple : I want my file to be in lower case, how can I do
that?

Here is what I tried :

<xsl:template match="class">
<xsl:variable name="lowername">
translate(@name, "abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ")
</xsl:variable>

<xsl:document href="{$directory}{$lowername}.hpp" method="text">
...
</xsl:document>
</xsl:template>

But this doesn't work.

Can somebody help me with this?

Thanks.

JF
www.jflefebvre.org

Current Thread