Hello Simon

You can use the XSLT translate-function to change to upper-case. (See
example below)

---- 
  <xsl:call-template name="toUpperCase">
     <xsl:with-param name="wort" select="name"/>
  </xsl:call-template>
----

<!-- ================================= -->
<!-- Translates a String to Upper-Case -->
<!-- ================================= -->
<xsl:template name="toUpperCase">
    <xsl:param name="word"/>
    <xsl:variable name="small" select="'abcdefghijklmnopqrstuvwxyz�����'"/>
    <xsl:variable name="CAPS"  select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ�����'"/>
    <xsl:value-of select="translate($word, $small, $CAPS)"/>
  </xsl:template>
</xsl:stylesheet>

Greets, Helmut

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 4. M�rz 2003 18:05
> An: [EMAIL PROTECTED]
> Betreff: Best way to uppercase text
> 
> 
> Hi !
> 
> I would like to now your point of view on this subject :
> 
> I want to use the text-transform="uppercase" attribute in a 
> fo:block tag, 
> but I saw in the output console that it was not implemented 
> yet (using 
> 0.20.5rc2), so I am wondering on the best way to implement it 
> with xsl... 
> 
> I thought about using the xsl translate(string,string,string) 
> function, 
> but I don't think that's the best solution and I'm sure there 
> is a better 
> way to do that. And I don't want to put the uppercase value 
> in my XML...
> 
> Any ideas ? 
> 
> Thanks,
> 
> Simon
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to