W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Re: XML Schema form DTD

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 27 Jun 2001 09:27:28 +0200
Message-ID: <3B398AE0.7A0167D6@dyomedea.com>
To: Stefano Galdo <Stefano.Galdo@valtech.co.uk>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Stefano Galdo wrote:
> hi,
>   can anyone know how to translate an ENTITY form DTD to XML Schema? I mean
> a have a DTD something like:
> <!DOCTYPE catalog [
>         <!ELEMENT catalog (course)*>
>         <!ELEMENT course (name, duration,prerequisities,description)>
>         <!ATTLIST course code CDATA #REQUIRED>
>         <!ELEMENT name (#PCDATA)>
>         <!ELEMENT duration (#PCDATA)>
>         <!ELEMENT prerequisities (#PCDATA)>
>         <!ELEMENT description (#PCDATA)>
>         <!ENTITY tixml SYSTEM "tixml.xml">
>         <!ENTITY exml SYSTEM "exml.xml">
>         <!ENTITY xmlj SYSTEM "xmlj.xml">
> ]>
> I have translated it using xmlSpy into a XML Schema but it seam to ignore
> the <!ENTITY..> tag so I am not be able to refer to those external files
> (tixml.xml, exml.xml, xmlj.xml) using the &.... syntax.

Entities just do not translate into W3C XML Schema!

It's a common misunderstanding that W3C XML Schema is a replacement for
DTDs: W3C XML Schema does only replace the "modeling" part of DTDs (you
can have a look at a recent discussion [1] on xml-dev about the

[1] http://lists.xml.org/archives/xml-dev/200106/msg00579.html

> Thank you in advance
> Stefano
> DISCLAIMER: This e-mail contains Proprietary information some or all of
> which may be legally privileged. It is for the intended recipient only.  If
> an addressing or transmission error has misdirected this e-mail, please
> notify the author by replying to this e-mail. If you are not the intended
> recipient you must not disclose, distribute, copy, print or rely on this
> e-mail. All information contained within this e-mail is subject to the Terms
> & Conditions of Valtech Ltd. which are available upon request.

Pour y voir plus clair dans la nebuleuse XML...
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Wednesday, 27 June 2001 03:27:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC