This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Initcap function
- From: David Tolpin <dvd at davidashen dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 07 Feb 2004 00:54:46 +0400
- Subject: Re: [docbook-apps] Initcap function
> From dvd@davidashen.net Sat Feb 07 00:50:37 2004
> Date: Fri, 6 Feb 2004 11:56:51 -0800 (PST)
> From: vhikida@inreach.com
> To: docbook-apps@lists.oasis-open.org
> 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/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.