OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: Create caps presentation of phrase?


>>>>> Bob Stayton <bobs@sco.com>:

> 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]