|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: translate function & hex data
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').
|
|
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
| RSS 2.0 |
|
| Atom 0.3 |
|
|