[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: using entities

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue, 26 Feb 2008 14:48:48 -0500
Message-Id: <7.0.1.0.2.20080226144238.01450a40@CraneSoftwrights.com>
To: xmlschema-dev@w3.org
Re: using entities

At 2008-02-26 20:35 +0100, Andreas Peter wrote:
>my problem is that I have a DTD including lots of entities for greek
>characters, special characters and so on.

Those are used for resolving the text content of 
the references made in your XML document.

>I need them in my schema.

A schema is used for defining the model of your document.

The two purposes are different.

>I´ve read that every entity must be written under schema as a separate
>element.

I don't know what you mean by that ... entities 
and elements are different things.

>Is it possible, although DTDs are not xml syntax, to
>reference from a schema to the DTD entities?

What is it you are trying to do with that reference?

>I tried to convert some
>entities to schema using oxygenxml dtd => schema but the entities get
>lost, as expected. Is there a suitable solution under schema?

Solution to what?

>Thanks for helping me,

Help us answer you ... at least I for one don't know what you are asking.

An document isn't an XML instance if there are no 
declarations for entities that are being used, 
because then the document isn't well-formed.

W3C Schema validates well-formed documents.

W3C Schema was defined long after XML was 
defined, so it isn't possible to somehow express 
entity declarations in W3C Schema in a way that a 
well-formedness check of the document will find the document to be XML.

I hope this helps.

. . . . . . . . . . . . Ken


--
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
Received on Tuesday, 26 February 2008 19:49:26 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.