This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Manipulating capitals and lowercase in xsl
- From: "Dunning, John" <JDunning at goSPS dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 18 Jul 2002 10:28:19 -0400
- Subject: RE: [xsl] Manipulating capitals and lowercase in xsl
- Reply-to: xsl-list at lists dot mulberrytech dot com
>Is anyone aware of [either]
>a workaround
A workaround would be to alter the capitalization in the FO stylesheet,
using <xsl:translate>; for example:
<text>hello</text>
<xsl:template match="text">
<xsl:value-of
select="translate(.,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ
')"/>
</xsl:template>
returns "HELLO"
<xsl:value-of
select="translate(substring(.,1,1),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJK
LMNOPQRSTUVWXYZ')"/>
returns "Hello"
HTH,
John
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list