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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: XSD: Proposed Goals, Rev. 2

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Murray-Rust <peter@ursus.demon.co.uk>
  • To: "Xml-Dev (E-mail)" <xml-dev@ic.ac.uk>
  • Date: Wed, 27 May 1998 21:48:39

At 14:17 27/05/98 UT, Simon St.Laurent wrote:
>
>1. SDDs shall use XML document syntax, using element nesting and
attributes to 
>describe all constraints that may be verified by a processor using XSD.
>
In case it helps give an idea of the level that I am aiming at, here is
what I use in JUMBO1 for 'DTD' management:

<?xml version="1.0"?>
<CML>
  <ELEMENT NAME="ARRAY">
    <CONTENT>(#PCDATA)</CONTENT>
    <ATTLIST TITLE="BUILTIN">
      <NAME>BUILTIN</NAME>
      <TYPE>CDATA</TYPE>
      <DEFAULT>#IMPLIED</DEFAULT>
      <HTML TITLE="HELP">
<P>
BUILTIN is a generic attribute for defining the semantics of
an ARRAY or XVAR element. More later.
</P>
      </HTML>
    </ATTLIST>
    <ATTLIST TITLE="TYPE">
      <NAME>TYPE</NAME>
      <TYPE>CDATA</TYPE>
      <DEFAULT>#IMPLIED</DEFAULT>
      <HTML TITLE="HELP">
<P>
TYPE is the data type of the Item (e.g. INTEGER);
</P>
      </HTML>
    </ATTLIST>
    <HTML TITLE="HELP">
<P>
ARRAY (DXN):                   (superclass DrawableX_Node)
</P>
<P>
A container for a simple homogenous list of primitive objects (STRING, FLOAT,
DATE, URL, etc).  ARRAYs have BUILTINs associated with them in both TecML
and CML.
</P>
<!-- ... deleted ... -->
    </HTML>
  </ELEMENT>
</CML>

This was pre-namespaces... and also was not verifiable (although there
*was* a DTD somewhere for this syntax I didn't use it :-). Also at that
stage I simply put in the ASCII content spec whereas later I parsed the
spec and included it as a subtree.

I would now suggest that the elementType names were taken directly from the
spec, etc.

	HTH

	P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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