Next in thread → Next in month →

Re: [docbook-apps] Initcap function

From
David Tolpin <>
Date
2004-02-06T20:40:40+00:00
ID
Thread
Re: [docbook-apps] Initcap function
> From  Sat Feb 07 00:50:37 2004
> Date: Fri, 6 Feb 2004 11:56:51 -0800 (PST)
> From: 
> To: 
> Content-Type: text/plain;charset=iso-8859-1
> Subject: [docbook-apps] Initcap function
>
> I'm not sure if this is the right forum to ask this question.
>
> I was wondering if there is an xsl technique or function which I can use
> to create text with initial capitalizations e.g.
>
> "New York" = initcap("NEW york")
>
> The closest I found is translate("NEW york","abcd..z","ABCD..Z") which is
> not what I really need.

If you need it in the presentation form, then it can be done
by text-transform="capitalize" in XSL 1.0 (XSL FO). I think
text-transform: capitalize is present in CSS too.

This will not create capitalized text, but rather will represent
the text as capitalized.

David Tolpin
http://davidashen.net/
Next in thread → Next in month →