This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Capitalizing content of a variable



> > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]