OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] DTD ( From Eliotte Rust Harold's Book)

Thank you Sean for your valuable feedback. It really set me thinking.
Also, With apologies to the Author of XML Bible, the name should read
Eliotte Rusty Harold.
I regret the typo caused.

Praveen Zala

-----Original Message-----
From: Sean McGrath [mailto:sean.mcgrath@propylon.com]
Sent: Thursday, September 27, 2001 3:28 PM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] DTD ( From Eliotte Rust Harold's Book)

Praveen Zala,

How volatile is the "between 4 and 6" constraint?

How likely is it to get more complex over time?
e.g. "between 4 and 6 in the first DIVISION but
6 and 10 in the second" etc.

If this volatility exists, I'd urge you to be
pragmatic. Do not try and enforce this constraint
in the DTD and do not spend time looking for
DTD replacements that allow you to enfoce

Leave this validation to a post XML-validation
filter written in your chosen programming

That way you will never run out of steam as your
constraints get more complex. You will
not hit any wall such as you will hit with any
declarative validation technique.

Get your system to work first. THEN, as the
system settles down,you will be in a position to
decide what parts (if any) of the constraints
checking can be migrated to a declarative

This delayed approach also gives the XML world
time to settle down on the issue of validation.
It is far from settled at the moment e.g.
XML Schema, Relax, XLinkit, Schematron and
so on, all have pros and cons and consensus
seems very far away.


 > -----Oorspronkelijk bericht-----
> > Van: Zala, PraveenKumar [mailto:praveenkumar.zala@digital.com]
> > Verzonden: donderdag 27 september 2001 9:40
> > Aan: xml-dev
> > Onderwerp: [xml-dev] DTD ( From Eliotte Rust Harold's Book)
> >
> >
> > Hi,
> >
> >  Suppose I am writing a DTD to have between 4 and 6 TEAM elements for a
> > DIVISION element, how do I go about specifying this ?
> >  Please note - I cannot have three nor seven TEAM elements for the
> > in my Document, such a document must be forced
> >  to be treated as invalid.
> >
> >  Hint : I can try to enforce the same above by grouping TEAM elements in
> > sequence, but still, I have cracked this to atleast
> >  have 4 elements but not the second criterion
> >
> >  Please get back with your suggestions.
> >
> > Thanks and Regards,
> > Praveen Zala

The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.xml.org/ob/adm.pl>