[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: error/confusion with translate function
Subject: Re: error/confusion with translate function|
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 11 Aug 2006 13:59:44 +0100
On 8/11/06, Duane Gran <dgran@xxxxxxxxxxxxx> wrote:
I'm getting some odd behavior from the translate() method. I'm using
it, along with Saxonb 8-7-3j, to convert the value of an attribute
from upper case to lower case. Below is the relevant line from my
<desc id="songsie.y.illbk.42" dbi="songsie.Y.P42">
My XSL is defined as the following:
<xsl:variable name="thumbnail-mixedcase" select="@dbi"/>
<xsl:variable name="thumbnail" select="translate($thumbnail-
My resulting document has has "...songsie.x.p42..." instead of
"...songsie.y.p42...". Below is the output:
I'm dumbfounded by this, especially since it works for well over a
thousand other cases. I've looked at this closely with the debugger
in oXygen, but I can't make sense out of how the translate function
is converting "Y" into "x". Can anyone shed light on this?
Look very closely at your a to z strings (especially the lowercase one)....
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format