This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Capitalizing content of a variable
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] Capitalizing content of a variable
- From: Johannes Döbler <jd at aztecrider dot com>
- Date: Thu, 09 Aug 2001 16:34:14 +0200
- References: <95E3FBC144C1D411A1AB0090271F735D39C98E@wiles2.sema.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > 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