xsl-list
[Top] [All Lists]

Case conversion and document()

2005-02-25 10:39:36
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}{(_at_)name}(_dot_)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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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