RE: [xsl] On-the-fly case-conversion w. translate()

Subject: RE: [xsl] On-the-fly case-conversion w. translate()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 6 Apr 2005 23:08:57 +0100
> <xsl:if test="@name[not(translate (self::node(),
> abcdefghijklmnopqrstuvwxyz,
> ABCDEFGHIJKLMNOPQRSTUVWXYZ) = translate
> (following::Program/@name, abcdefghijklmnopqrstuvwxyz,
> ABCDEFGHIJKLMNOPQRSTUVWXYZ))]" >
> 
> This does NOT work! Duplicates are eliminated,
> however, "project oregon" & "Project Oregon " are
> treated as separate /unique strings. What am I doing
> wrong?
> 

Try adding quotes, e.g. 'abcdefghijklmnopqrstuvwxyz'

Michael Kay
http://www.saxonica.com/

Current Thread