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

Re: Unicode and XML (was Re: Remembering the origina


unicode 0x 2
On Sun, Feb 16, 2003 at 09:54:32AM -0800, Tim Bray wrote:
> Well, XML1.1 is moving in that direction.  Even given that, I think that 
> XML 1.0's approach, with a big table right in the spec saying "here are 
> the legal characters", was probably correct; I (and I'm sure many other 
> programmers) ran a perl script over the spec to extract the char parsing 
> tables.   -Tim

 I used vi regexps directly, and recorded those in the C source file :-) !

 :1,$ s/\[#x\([0-9A-Z]*\)-#x\([0-9A-Z]*\)\]/     (((c) >= 0x\1) \&\& ((c) <= 0x\2)) ||/
 and
 :1,$ s/#x\([0-9A-Z]*\)/     ((c) == 0x\1) ||/

 of course the result was later modified a bit to speed up the test.
In order to try to turn a useless post into an useful one, did someone
tried to implement the character normalization checking of XML-1.1 ?
   http://www.w3.org/TR/xml11/#sec2.13
 I looked at the ICU sample code a few months ago and this simply scared
me mostly due to my perception of that code complexity and runtime cost.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@r...  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.