Lists Home |
Date Index |
- From: Marcus Carr <firstname.lastname@example.org>
- To: "email@example.com" <firstname.lastname@example.org>
- Date: Thu, 18 Dec 1997 08:46:04 +1100
Andrea Anders wrote:
> I am a amateur in xml...
As are we all...
> I try to transform a SGML-DTD into XML (I use MSXML-parser). My questions are:
> 1) Neither SGML-inclusions nor -exclusions are allowed in XML!? How can I
> express this in XML?
Inclusions and (to a lesser extent) exclusions have never really been a great
idea in SGML because of the potential for them to behave incorrectly when parsing
from somewhere other than the top level of the DTD. Depending on how widely
they've been used and how big your data set is, I'd be inclined to process all of
your documents and generate a report of the ancestors elements of the inclusions.
This will give you some perspective about how they've been used - you can then
make informed decisions about their handling and requirements. Exclusions can be
overcome by remodelling the content models, but this could be a substantial
amount of work if your DTD is large and/or complex.
That's the way I wouldn't do it. I would maintain the data as SGML and call it
XML as required. Does it need to be valid, or can it just be well formed? Be
careful about white-space around the inclusions and exclusions if you use this
approach - no matter how you slice it, they're bad news.
Marcus Carr email: email@example.com
Allette Systems (Australia) email: firstname.lastname@example.org
Level 10, 91 York Street www: http://www.allette.com.au
Sydney 2000 NSW Australia phone: +61 2 9262 4777
fax: +61 2 9262 4774
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)