Re: [xml] DTDs, Namespaces, and Plugin Modules

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat Mar 25 2000 - 04:59:18 EST


On Fri, Mar 24, 2000 at 01:10:27PM -0600, Arturo Tena wrote:
>
> Hello!
>
> Ari Johnson wrote:
> >
> > I am writing a program and intend to use XML for its internal
> > configuration settings and its database. I would like to use a DTD and
> > Namespaces, but there is a problem:
> >
> > The database consists of objects of varying types (all based off the
> > same C++ base class), which have to store various numerical and textual
> > bits of information about themselves in the XML file. Plugin modules are
> > able to add their own sub-classes to this hierarchy, as well as their
> > entire own sections of the file (there will be one tree for configuration
> > options, one for the database of objects, and others as required, all
> > below the root node of the XML document). This makes writing a DTD very
> > difficult, as the types of elements that can occur under both the room and
> > the database trees can vary depending on which plugin modules are
> > installed.
> >
> > Is there a good way to go about this, or am I better off going without a
> > DTD? Also, how might namespaces benefit me, and where can I find
> > more/better documentation on them?
>
> I guess you can express your objects using XSchema. Unfortunately, there are just a few
> Working Drafts, none Recomendation.
>
> http://www.w3.org/XML/Activity.html#schema-wg

  I agree, Schemas have a far more expressive power than DTD. Especially
they allow sub-typing or type derivations. A few people have expressed
interest in having XSchemas support in libxml. I'm currently a bit short
of time (I want a final libxml-2.0 version first), and would rather wait
for the specification to enter Last Call or Candidate Recommendation
stage before starting the implementation.
  However if people are ready to start implementing it, I would give an
hand and join the group, but my current main goal is elsewhere. I will
provide an XSchema implementation at some point taht's sure, problem
is getting something like 2 to 3 spare weeks to do the implementation
(that's the amount that my colleague Henry Thomson gave me when I asked
how long it took him to do one ... in Python though and he knows the
spec very well, he's co-editor of XML Schemas.
  http://dev.w3.org/cvsweb/xmlschema/
  )

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:09 EDT