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

RE: Converting a string to small-caps?

Subject: RE: Converting a string to small-caps?
From: "Stuart Celarier" <stuart@xxxxxxxxxxx>
Date: Wed, 15 May 2002 10:17:08 -0700
RE:  Converting a string to small-caps?
I think you're on the right track, but...

You should consider changing the stylesheet so that it creates the
fewest number of <span> elements. There should be one <span> element to
hold a consecutive run of upper-case letters; and one <span> element to
hold a consecutive run of non-upper-case letters. Think about doing this
by searching for the first occurrence of an upper-case letter in the
source string, if it is not the first character then take the substring
up to that character.

Also, think about using <span class="uc"> and <span class="non-uc"> and
include a <style> block to style the classes span.uc and span.non-uc.
This seems more efficient that all the style attributes in the span
elements, and makes it easier for the user to customize the style (ah,
the blessed cascade of CSS!).

And don't forget to write to your favorite browser vendors and tell them
how much you value their conformance to the CSS2 specification. I am
quite serious. Without feedback, how do they know what we want?

Cheers,
Stuart


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.