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

Re: PSVI

  • From: Charles Reitzel <creitzel@m...>
  • To: xml-dev@l...
  • Date: Mon, 05 Mar 2001 10:50:32 -0500 (EST)

instance thread
On Fri, 02 Mar 2001 09:42:47 -0700, Uche Ogbuji wrote:

>Parsing should be parsing and there should be a "canonical" 
>infoset as a result.

and

>If there were a clean and well-mapped pipeline of XML
>processing I think a lot of the concern over intertwined 
>yet out-of-sync specs and maybe even PSVI infiltration 
>could be satisfactorily resolved.

Couldn't agree more.  Also looks like a lot of the details have been
discussed.  I see a pent up demand for (what I think of as) an XML-only DOM.
A.k.a the original Infoset.  I know I was disappointed when the WG backed
off and included only known overlaps.  I appreciate why they did what they
did, however.  Call it Groves, if you like.  Back when folks like Paul
Prescod and Eliot Kimber were clamoring for such a thing, I didn't
understand the need.

I liked Simon's layering:

    standalone
        => instance+DTD 
            => instance+DTD+Schema

where
    instance includes:
        namespace declarations

    DTD adds:
        #FIXED values,
        default attribute values,
        Entities
        DTD validation

    Schema adds:
        default+fixed attribute values
        default+fixed element values
        datatypes! ( conversion, null/not null, 
                     equality, ordering, ... )
        schema validation

I'm sure I missed some.  I don't see why the original standalone="yes|no"
doesn't continue to do the job.  If standalone=no, then DOCTYPE,
schemaLocation, namespace URIs and/or RDDL can point to the necessary extra
ingredients.  These additional pieces may or may not be retrieved from
local, possibly secure, caches.

Yes, it all adds to a WF instance.  Essentially, what standard layering buys
you is you know what is or is not included in that instance.


At 05:45 PM 3/1/01 -0500, David Megginson wrote:
>My preference is to include all defaulted information in
>production instances and not to include a DOCTYPE 
>declaration or schema link at all -- that's the only way 
>to ensure that all clients see the same document, and that 
>no one does anything stupid.

In the absence of some consensus of how the layers add up, this is a
sensible, if defensive approach.  I do it, too.  While it may sometimes be
suitable to resolve all DTD+schema data into production instances, it will
not always be desirable.  In RPC applications, schemas will allow
significant instance size reduction.  E.g., embedding schema data type
information in instance docs can be avoided.

In RDBMS-speak, such "denormalization" causes "update anomolies".  The right
approach will depend on the life cycle of the documents in question.
Standard layering lets us be a bit less defensive and eases instance
maintenance.

take it easy,
Charles Reitzel



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.