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

Re: SAX Topic 2004-0003: Unicode normalization


unicode normalization windows
Karl Waclawek wrote:
>>* Topic 2004-0003: Unicode normalization
> Ideally the factory is the better place for it, as it would
> be for requesting a validating parser. But what about
> backwards compatibility?

Backwards compatibility for turning validation on/off is not
immediately broken by providing an appropriate feature setting
for the factory. It depends what kind of consistency is required
between using the feature on the factory and on the processor
itself.
Some possiblities:
1. Using the feature setting on the factory just creates a
  preconfigured processor.
2. Using the feature on the factory creates a processor whose
  feature setting can't be changed later (but it can be set to
  the preset value).
3. The feature can *only* be used on the factory, trying to
  change it on the processor, even to the preset value, results
  in an error.
4. The feature can *only* be set on the processor.
Pick one, or add your own variation.

> It is conceivable to have user options for ignoring certain
> kinds of errors. In the case of Unicode normalization:
> What about the ability to turn normalization checking
> off in the middle of parsing? 

I think the results are unpredictable. An efficient parser
might have read ahead, prepared a buffer of already normalized
data and discarded the original data on a non-seekable input
stream.

J.Pietschmann

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.