xsl-list
[Top] [All Lists]

Re: Case conversion and document()

2005-02-25 11:22:31
Tempore 18:39:36, die 02/25/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Jean-Francois Lefebvre <jean-francois(_dot_)lefebvre(_at_)polymtl(_dot_)ca>:


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

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

This snippet does a (pseudo) uppercase convertion.
Reverse those 2nd and third parameters:

translate(@name,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")

regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
"Φιλήκοον ειναι μαλλον η φιλόλαλον"  - Κλεόβουλος

--~------------------------------------------------------------------
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>