|
Subject: RE: [xsl] Converting a string to small-caps? From: "bryan" <bry@xxxxxxxxxx> Date: Wed, 15 May 2002 18:59:37 +0200 |
>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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Converting a string to small-, Brook Elgie | Thread | RE: [xsl] Converting a string to sm, Stuart Celarier |
| RE: [xsl] xslt version of Microsoft, Stuart Celarier | Date | RE: [xsl] Converting a string to sm, Stuart Celarier |
| Month |