[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: First character in a word as capital-letter.

Subject: Re: First character in a word as capital-letter.
From: Dariusz Borowski <d.borowski@xxxxxx>
Date: Tue, 13 Sep 2005 11:46:17 +0200
make first letter capital css
Thanks a lot!

Yes, my output is HTML. Do you know the instruction in CSS for outputting the first character in a word as capital-letter?

Thanks,
Dariusz



xsl-list@xxxxxxxxxxxxxxxxxxxxxx schrieb am 13.09.05 11:18:25:
> 
> On 9/13/05, Dariusz Borowski <d.borowski@xxxxxx> wrote:
> > 
> > Hi!
> > 
> > Could anyobdy tell me if there is a function in xpath which can make the first character in a word as a capital-letter.
> > 
> > e.g.
> > - closed
> > (should be written as)
> > - Closed
> 
> define two variables:
> 
> <xsl:variable name="uppercase" select="'ABC..XYZ'"/>
> <xsl:variable name="lowercase" select="'abc..zyz'"/>
> 
> (but write out the whole alphabet)
> 
> then use:
> 
> <xsl:value-of select="concat(translate(substring(., 1, 1), $lowercase,
> $uppercase), substring(.,2))"/>
> 
> If your target output is HTML then there's a CSS instruction that can do it.
> 
> cheers
> andrew
> 


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.