OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: XSchema Spec, Sections 2.0 and 2.1 (Draft 1)

[ Lists Home | Date Index | Thread Index ]
  • From: "Rick Jelliffe" <ricko@allette.com.au>
  • To: "Xml-Dev (E-mail)" <xml-dev@ic.ac.uk>
  • Date: Tue, 9 Jun 1998 02:19:17 +1000

> From:  Simon St.Laurent
> <!ELEMENT XSC:XSchema (Doc?, (ElementDecl | Entity | Notation | 
> Namespace | 
> XSchema)*)>
>     XSC:Version CDATA #FIXED "1.0"
>     XSC:MimeType CDATA "application/xml"
>     XSC:FileExtension CDATA "xml">
Almost all DTDs, or fragments which can stand by themselves as
reuseable components, end up with a similar stucture which allows
metadata headers, the actual body, and a section for annotations 
and floating elements.

So I suggest that you build this into XSchema
from the start: you can do this simply by using HTML's meta element,
and by adding HTML's body element at the end, to fit in any
miscellaneous text that the person wants to add. (I know that this
may seem to duplicate XSC:Doc, but for any sizeably documented DTD,
the declaration elements should come before the documentation elements
so that the receiveing processor does not have to wait for long periods
for the stuff it is really interested in.)

Also, I have allowed multiple title elements, to be differentiated
according to language, for i18n. 

<!-- ===================================================== -->
<!-- An XSchema has a top-level structure sinmilar to HTML -->
<!ELEMENT XSC:XSchema (XSC:head?, XSC:body, HTML:body?)>
     XSC:Version CDATA #FIXED "1.0" >

<!-- Multiple title for i18n. Multiple meta for information
such as file extension and MIME types --> 
<!ELEMENT HTML:head    (HTML:title*, HTML:meta*)>

<!ELEMENT HTML:title   ( #PCDATA )>
	XML:lang CDATA "en-US" ><!-- i.e. this is the default -->

	http-equiv NMTOKEN #IMPLIED
	name       NMTOKEN #IMPLIED
	content    CDATA #REQUIRED
	XML:lang   CDATA "en-US"  >

	( Doc?, (ElementDecl | Entity | Notation | 
 	Namespace |  XSchema)*)>
<!-- ===================================================== -->

(For more information on this approach, refer Chapter 7 
"The Document Shell" in my book. )

Rick Jelliffe

The XML & SGML Cookbook, by Rick Jelliffe
Charles F. Goldfarb Series on Open Information Management
656 pages + CD-ROM, Prentice Hall 1998, ISBN 0-13-614223-0
http://www.phptr.com/  > Book Search > "Jelliffe"

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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS