W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2000

Re: [Moderator Action] DTD to Schema (.xsd) Conversion

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 28 Sep 2000 10:27:20 +0100
To: "Steve Lampert" <lamperts@erols.com>
Cc: <xmlschema-dev@w3.org>, <mcinerneyjm@state.gov>
Message-ID: <f5b7l7wdfyf.fsf@cogsci.ed.ac.uk>
"Steve Lampert" <lamperts@erols.com> writes:

> I've been working with Extensibility's Turbo XML package and this question is
> directly related to XML Authority (concerning DTD to Schema conversion).  So
> far, I've created 8 different DTD's for a project.  I've also saved them as
> schemas (.xsd files).  Everything has gone well up to this point.  The need
> for a general entity to represent "@" arose and I created one named "at".  The
> "@" will be interpreted as a control character and could possibly terminate a
> session, so a work around was vital.  The problem lies in that when I tried to
> save it as an .xsd file this time, an error message was displayed: 
> "Declaration type not supported in schema:  'Internal General Entity'".  I've
> contacted technical support at Extensibility and they've stated that this
> problem is being addressed and will hopefully be fixed in later releases.  In
> the mean time, how do I designate that I'd like to replace the "@"?  Is there
> something else that I could do?  Since I'm using a schema generation tool, is
> there a way that I could just enter the code myself on a text editor (more
> importantly, what is it?)?

You have to edit the general entity into the schema docoment's
internal subset:

<!DOCTYPE xs:schema ... [
<!ENTITY at '&#64;'>
]>
<xs:schema>
...
</xs:schema>

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 28 September 2000 05:27:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:18 GMT