[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX Topic 2004-0003: Unicode normalization
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|