xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dang Minh Phuong <mpd...@ncs.com.sg>
Subject RE: How to capitalize text ???
Date Tue, 10 Feb 2004 10:08:49 GMT
It works. Thank you very much.

-----Original Message-----
From: Wouter de Vaal [mailto:wouter_de_vaal@hotmail.com] 
Sent: Sunday, February 08, 2004 11:16 PM
To: fop-user@xml.apache.org
Subject: Re: How to capitalize text ???

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)"/>
</xsl:template>

This will translate all lowercase text in XML to uppercase.

Wouter

----- 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

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


Mime
View raw message