[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
translate hex
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', '&#x00;')]" />

and it fails (raises IE5.5 catch-all type error message).  But if I change the numeric entity to &#x01, 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','ABCD&#x45;') is the same as
> ($someString,'abcde','ABCDE').
Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.