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

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

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "Xml-Dev (E-mail)" <xml-dev@i...>
  • Date: Tue, 9 Jun 1998 02:19:17 +1000

RE: XSchema Spec

> From:  Simon St.Laurent
 
> <!ELEMENT XSC:XSchema (Doc?, (ElementDecl | Entity | Notation | 
> Namespace | 
> XSchema)*)>
> <!ATTLIST XSC: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?)>
 <!ATTLIST XSC:XSchema
     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 )>
 <!ATTLIST HTML:title
	XML:lang CDATA "en-US" ><!-- i.e. this is the default -->

<!ELEMENT HTML:meta
 <!ATTLIST HTML:meta
	http-equiv NMTOKEN #IMPLIED
	name       NMTOKEN #IMPLIED
	content    CDATA #REQUIRED
	XML:lang   CDATA "en-US"  >


<XSC:Body 
	( 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.sil.org/sgml/jelliffeXMLAnn.html
http://www.phptr.com/  > Book Search > "Jelliffe"
http://www.amazon.com/exec/obidos/ASIN/0136142230/002-4102466-3352420 



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.