RE: [xsl] Manipulating capitals and lowercase in xsl

Subject: RE: [xsl] Manipulating capitals and lowercase in xsl
From: "Dunning, John" <JDunning@xxxxxxxxx>
Date: Thu, 18 Jul 2002 10:28:19 -0400
>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


Current Thread