Re: [xml-dev] RELAX NG Marketing

From
Thomas B. Passin <>
To
"Xml-Dev (E-mail)" <>
Date
2002-03-26T22:48:39Z
ID
<003401c1d518$5f966df0$0bf13044@tbp>
Thread
Re: [xml-dev] RELAX NG Marketing
[Jeff Lowery]


> But in order to know how to reorder the schema, you'd have to read the
> instance document. Oh, and continually reorder the schema depending on the
> element content currently being read.
>

Exactly.  But to get a schema to allow certain children in any order, you
have to check it every time, nes'pa?

> Perhaps there's more elegance there than is apparent?
>
I suppose they really meant that they wanted to __read__ the schema and
discover that any order would be allowed, rather than to __validate__ each
time.  But the question posed was for validation each time.  You have to
read the instance document for that.  I bet you could use it to set up a
stylesheet - maybe run a fast SAX pass first to just observe the order and
give the information to the stylesheet.

Maybe I better get my tongue out of my cheek before I bite it...

Cheers,

Tom P

> > Aha, payback time, eh, Jeff?
>
> Credit where credit is due, Tom.
>
> > The smallest performance hit
> > would be to use
> > an xslt stylesheet to reorder the __schema__, not the data
> > (after all, they
> > want to allow any order, right?)!
> >