Here is a test transformation that shows that translate() doesn't work.

- xsl

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" version="1.0" encoding="iso-8859-1"
indent="yes" />

<xsl:template name="min2MAJ">
   <xsl:param name="contenu"/>
   <xsl:value-of
select="translate($contenu,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:template>


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

<xsl:template match="text">
   <TEXT>
   <xsl:call-template name="min2MAJ">
      <xsl:with-param name="contenu" select="."/>
   </xsl:call-template>
   </TEXT>
</xsl:template>

</xsl:stylesheet>

- in

<?xml version="1.0" encoding="iso-8859-1"?>

<text>
hello Word
</text>

nico

Reply via email to