[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Capitalizing content of a variable


Subject: RE: [xsl] Capitalizing content of a variable
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Thu, 09 Aug 2001 16:34:14 +0200


> Are there any languages where capitalizing can change the number of
> characters?

Yes, the most common example is the German ß. To handle that you need a more
sophisticated approach.

Mike Kay
Software AG


but its still possible (don't say I'm cheating):


<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:string="java.lang.String" version="1.1">

<xsl:output method="text"/>

<xsl:script implements-prefix ="string" language="java" src="java.lang.String"/>

<xsl:param name="input" select="'abcdäöußáblabla'"/>

<xsl:template match="/">
        <xsl:value-of select="string:toUpperCase(string:new($input))"/>
</xsl:template>

</xsl:stylesheet>


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread