[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to outupt data in hex

Subject: RE: how to outupt data in hex
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 27 Mar 2001 18:13:12 +0100
data to hex
The questioner wanted to translate "A" into "0x65". There's no way in XSLT
of obtaining the numeric Unicode code for a given character. They weren't
asking to output an XML character entity such as "&#x65;"

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> Clapham, Paul
> Sent: 27 March 2001 17:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  how to outupt data in hex
>
>
> Aren't Chinese characters valid in XML?  (That was the
> original question's
> context.)  Your book on p.62 says that any Unicode character
> between #x21
> and #xD7FF or between #xE000 and #xFFFD is an acceptable
> character.  So it
> seems to me that outputting Chinese characters should work,
> if you write
> #x3C5D or whatever the correct Unicode representation might be.
>
> PC2
>
> -----Original Message-----
> From: Michael Kay [mailto:mhkay@xxxxxxxxxxxx]
> Sent: March 27, 2001 00:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  how to outupt data in hex
>
>
> > my question is: is there any function/way does XML/XSLT that
> > outputs the
> > contents in Hex?
> > example
> >
> > <data>
> > ABC
> > <data>
> >
> > the output is:
> > 0x650x660xb7
> >
> You'll need an extension function for this.
> Or consider writing a back-end ContentHandler to do the final
> processing.
>
> Mike Kay
> Software AG
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.