This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Create caps presentation of phrase?
>>>>> Bob Stayton <bobs at sco dot 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[ at role='caps']//text()">
> <xsl:value-of select="translate(., 'abcdefghijklmnopqrstuvwxyz',
> 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
> </xsl:template>
Thanx, Bob! Works great!
- Steinar
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org