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

Re: ANN: Regular Associations


Re:  ANN: Regular Associations
> I don't mean to be too negative. Your idea is very elegance. And, of 
> course, you have written a fast parser to implement it with. But I feel 

To say the truth, I've written a Relax NG validator. The parser is Expat.
And, thanks to the derivative (http://www.thaiopensource.com/relaxng/derivative.html)
approach, validation is faster than parsing.

> Your proposal, like Clark's, invites the user to add rules over time, 
> which can build up like cholesterol until one fine day it takes 10 
> seconds to open a file and nobody understands why. ;-}

Right. Let the system spend 10 seconds to open a huge file with cryptic name
for the first time. It will then be added to the table (the exact name). If 
I need that many rules to determine the file's type, then my brain would have to do
the same job. And slower. In fact, with early cutoff employed, I hardly imagine
this possibility. 

And with all validation patterns processed concurrently, the validation would stop
as soon as one  of them finds the 'any' pattern; or when all failed. Thus it will
not take much longer than the slowest single pattern.

> Stepping away for the performance issue, it still occurs to me that you 
> or Clark haven't made life as easy as it is for W3 XML Schema users in 
> some tools, where they can just specify a list of (namespace, schema 
> location) pairs - outside the documents, of course - and those will be 
> used not just to validate the start element of the document but any 
> elements in the document or schemas that bear one of the namespaces. One 
> could do it with Clark's by specifying that a rule invoked a NRL 
> "schema", but that's a whole lot of baggage for something that should be 
> simpler and more approachable.

This is a completely different problem, but do you mean that XML Schema validation
is simpler and more approachable than NRL+Relax NG? Are you aware of any 
conformant XML Schema implementation? Conformant enough to either confirm
that "." (that is, single decimal point) is a legal decimal, or force the WG
to fix the spec?

Don't get me wrong. I don't think that a simply-looking approach in a framework
that does not work is better than a simple by design approach that is implemented.

David Tolpin


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.