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: Manipulating capitals and lowercase in xsl


>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


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