xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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', '&#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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor