This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Capitalizing only the first letter of each word
- From: Robert Koberg <rob at koberg dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 21 Mar 2002 05:56:25 -0800
- Subject: Re: [xsl] Capitalizing only the first letter of each word
- References: <60A8664AEEB2D511B631000476AAB1A3B6821B@ma-atl81>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
If you can use CSS you can do this:
div.name {text-transform:capitalize;}
...
<DIV CLASS="name">JOHN LEWIS</DIV>
displays as:
John Lewis
best,
-Rob
>
>-----Original Message-----
>From: Katie McNally [mailto:kmcnally9@hotmail.com]
>Sent: Wednesday, March 20, 2002 8:43 PM
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] Capitalizing only the first letter of each word
>
>
>I am getting back my data in ALL-CAPS. Is there any way to display the
>first letter of each word in uppercase, but the rest of each word in
>lowercase?
>
>example XML:
>
><Tg Nm="Name">JOHN LEWIS</Fld>
><Tg Nm="Street">8780 MAIN ST</Fld>
><Tg Nm="City">COLORADO SPRINGS</Fld>
><Tg Nm="State">CO</Fld>
>
>I want to display:
>
>John Lewis
>8780 Main St
>Colorado Springs
>CO
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list