Subject: Re: translate function & hex data
From: "Paul Bell" <pbell@xxxxxxxxxxxx>
Date: Tue, 29 Feb 2000 10:14:50 -0500
|
|
Hello All,
Thanks, Mike, for the reply. I had, in fact,
tried the entity ref but in the process of changing my code, I accidentally
removed one of translate's other arguments. The parser complained and I
too hastily gave up.
I've since tried your example and it works
fine. I also tried by way of a simple test:
<xsl:value-of select="./@RSRC[translate('a', 'a',
'�')]" />
and it fails (raises IE5.5 catch-all type error
message). But if I change the numeric entity to , it
works.
Something special about null character?
Thanks again,
Paul
> Since an XML parser will resolve character references before the
stylesheet > tree is built, you should be able to put any Unicode
characters in the > arguments to the translate() function. For
example, > translate($someString,'abcde','ABCDE') is the same
as > ($someString,'abcde','ABCDE').
|
|