[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Case conversion and document()

Subject: Case conversion and document()
From: Jean-Francois Lefebvre <jean-francois.lefebvre@xxxxxxxxxx>
Date: Fri, 25 Feb 2005 12:39:36 -0500
jean francois lefebvre
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.