This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Converting a string to small-caps?




>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]