|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Layering (was RE: Blueberry/Unicode/XML)
> I've noticed a trend lately that many of the particularly thorny > issues that have been debated on XML-DEV result in the > identification, or suggested addition of a 'layer' within parsers and > beyond. (Especially when we get into namespaces, linking, inclusion > and validation, and PSVIs) What was that -- XPath and XSchema both need to be applied first? A small layering botch ... :) > Has anyone ever documented what these separate layers are? > Or possibly identified in which 'layer' particular XML > requirements/constraint lie? Well, AElfred2 is at least modular ... the core parser is still non-validating, and validation is an optional module. (Like JAXP, DOM, and so on ... ) Given SAX2, most validity checking can be layered. There are a few checks that can't be -- relating to entity management such as the two nesting VCs and standalone declarations, and a few more. And given some library to encapsulate name rules, all that is separable too. Call it another "layer". Then most other XML apps should be nicely layerable on top of the infoset as exposed/augmented through SAX2. Linking, inclusion, schema-du-jour, and so on. > Is it possible to write an efficient layered parser in this way? > Do the logical divisions get blurred once optimisation starts? XML 1.0 does have some notions that aren't particularly friendly to layering ... those entity management VCs that I mentioned above, for starters. They need to be special cased inside an otherwise non-validating parser. - Dave
|
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
|
|||||||||

Cart








