XSchema: Section 4

John Cowan cowan at locke.ccil.org
Wed Sep 23 19:10:15 BST 1998

Ron Bourret wrote:

> QUESTION: What happens to the following:
> * Processing instructions

Discard.  PIs in the DTD (that is, in the external subset or
in external parameter entities) belong to the document,
not the schema.  They shouldn't be read by the XSchema processor
as part of the schema.

> * Text encoding declarations

Interpret and regenerate.  There is no requirement that the output
of a converter have the same text encoding as the input.

> The following XSchema structures may be converted to the corresponding DTD
> structures or discarded:
> * Doc elements. These may be converted to comments. The position of resulting
> comments in the DTD is the choice of the converter.

It should be said generally that comment declarations may be
freely generated by converters in either direction ad libitum.
They may copy them, discard them, or invent them.  (In particular,
a converter may copy over the whole of its input as a comment,
or as many comments, for documentation's sake.)

John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list