Hi,

I transformed some text to upper-case using variables and
the transform() funcion. Maybe there is an easier way to do this,
but this should work. The following is an example how to do this.

Marko

example.xml:

<?xml version="1.0"?>
<test>
<node>Hello</node>
</test>


example.xsl:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />

<xsl:template match="*">
<xsl:apply-templates select="node"/>
</xsl:template>

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

</xsl:stylesheet>


At 14:12 08.11.2002 -0500, you wrote:
Hi,
  since text-transform="uppercase" doesn't appear to work under FOP, does
anyone know of a way I can convert my text to all-upper case letters?

  Thanks!

  Jonathan Evraire
  jonevrai at justice.gc.ca



Reply via email to