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

Re: XML doc valid against more than one DTD / Schema

  • From: "Frank Boumphrey" <bckman@i...>
  • To: <charlie@r...>, <xml-dev@x...>
  • Date: Sun, 9 Apr 2000 09:47:31 -0400

charles mccay
Charles,
the best way to do this is to modularize your DTD. If you have a letter
module then you can even use your full DTD to validate it. You must change
your DOCTYPE declaration of course. In our medical DTD we have a
hierarchical module (a la DocBook) and then modules for all the common tasks
performed by a medical record.

Frank

----- Original Message -----
From: Charles McCay <charlie@r...>
To: <xml-dev@x...>
Sent: Friday, April 07, 2000 11:17 AM
Subject: XML doc valid against more than one DTD / Schema


> I am working with a complex DTD for a full medical record, and want to
> define a simpler subset that could be used just for discharge letters.
This
> would include restricting some of the enumerated attributes, and providing
> FIXED values for others, and removing some of the optional elements.
>
> What I would like to be able to do is to indicate that a document is valid
> against both the restricted DTD and the full one, so that the receiving
> system can validate it using whichever one they have.
>
> Such simplified documents could be used as a stepping stone towards
> implementing a richer data exchange using the full DTD, reducing the cost
of
> getting started  while having forward compatibility.
>
> Also if DTD/schema editors could easily validate that their cut-down
> document design defined a true subset of the documents valid under a
larger
> and more complex document design, then the risk of having multiple
"similar
> but not quite the same" documents would be reduced.
> Conditional blocks in the full schema will not work, because that assumes
> that the full schema can be amended whenever a new subset is wanted.
>
> It is far easier to persuade a supplier to implement a standards based
> interface where
> they can do it in an incremental fashion, and so short schema that only
> cover part of the
> full information model are a good deal more attractive that having to deal
> with everything at
> once.  However once they have done the work to support the full model,
they
> want the payback
> of not having to modify their work to support different subsets.
>
> Looking at the W3C spec of schemas there seems to be some hope.  It
appears
> possible to validate a document against a schema other than the one
> associated with the default namespace of the instance document, but there
is
> not a mechanism for saying that a document is valid under two namespaces.
> It appears that restrictions will be available to define the simplified
> version, but what this will not deliver is an easy to read short document
> (schema) for the simplified document definition.  This will still be
> referencing the full document, if anything adding the confusion of the
> implementer.
>
>
> Any suggestions or corrections more thank welcome
>
> --
> Charlie McCay, charlie@R...
> Ramsey Systems Ltd, 23D Dogpole, Shrewsbury, Shropshire SY1 1ES
> tel 01743 232278 / fax 01743 232295
>
>
>
>
***************************************************************************
> This is xml-dev, the mailing list for XML developers.
> To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
> List archives are available at http://xml.org/archives/xml-dev/
>
***************************************************************************


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.