This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]