Re: Create caps presentation of phrase?

From
Steinar Bang <>
Date
2003-04-04T06:20:22+00:00
ID
Thread
Re: Create caps presentation of phrase?
>>>>> Bob Stayton <>:

> On Wed, Apr 02, 2003 at 09:35:24PM +0200, Steinar Bang wrote:

>> Is it simple/possible to do something in the local XSL
>> customization layer, so that eg. <phrase role="caps">Some
>> TeXt</phrase> can be rendered as "SOME TEXT"?

> Sure, add this to your customization layer:

> <xsl:template match="phrase[@role='caps']//text()">
>    <xsl:value-of select="translate(., 'abcdefghijklmnopqrstuvwxyz',
> 	'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
> </xsl:template>

Thanx, Bob!  Works great!


- Steinar