This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Converting a string to small-caps?
- From: "bryan" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 15 May 2002 18:59:37 +0200
- Subject: RE: [xsl] Converting a string to small-caps?
- Reply-to: xsl-list at lists dot mulberrytech dot com
>Which renders exactly as expected - but it's hardly efficient to have a
>span
>tag around every letter that I want small!
>Is there another way? either tweaking my script or a completely
different
>way.
I don't see any reason you can't just do the following
<xsl:template match="main">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="convert_me">
<xsl:variable name="upperCase"
select="translate(.,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMN
OPQRSTUVWXYZ')"/>
<span style="font-size:smaller"><xsl:value-of
select="$uppperCase"/></span>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list