xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wouter de Vaal" <wouter_de_v...@hotmail.com>
Subject Re: How to capitalize text ???
Date Mon, 09 Feb 2004 07:16:17 GMT
You should use XSLT for this:

<xsl:variable name="uppercase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>

<xsl:variable name="lowercase">abcdefghijklmnopqrstuvwxyz</xsl:variable>

<xsl:template match="text()">
   <xsl:value-of select="translate(.,$lowercase,$uppercase)"/>

This will translate all lowercase text in XML to uppercase.


----- Original Message ----- 
From: Dang Minh Phuong
To: 'fop-user@xml.apache.org'
Sent: Monday, February 09, 2004 3:50 AM
Subject: How to capitalize text ???

Hi all,

I have a text received from the DB and put in xml file. Now I want to
capitalize that text when showing it in PDF using FOP. How can I do that ???

Thanks for your help.

To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org

View raw message