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

XSchema Spec Section 2.2, Draft 1

  • From: "Simon St.Laurent" <SimonStL@c...>
  • To: "Xml-Dev (E-mail)" <xml-dev@i...>
  • Date: Wed, 10 Jun 98 00:04:15 UT

XSchema Spec Section 2.2
As usual, all comments, suggestions, rantings, etc. are welcome.  I'm having a 
hard time describing these very simple parts, so I'd especially appreciate 
terminology improvements.

Notes: I've expanded parameter entities and added namespace prefixes; 
otherwise this section (and content models and attributes, coming up next) are 
based entirely on John Cowan and Ron Bourret's combined DTD.  Anything 
prefixed and postfixed with ... is in italics in the HTML version.

The HTML version will be available shortly (as soon as AOL's servers stop 
giving me read-only filesystem errors, anyway) at 
http://purl.oclc.org/NET/xschema.

Simon St.Laurent
Dynamic HTML: A Primer / XML: A Primer / Cookies

2.2 Element Declarations

Element declarations in XSchemas are made using the XSC:ElementDecl element 
and its contents:

<!ELEMENT XSC:ElementDecl (XSC:Doc?, (XSC:Ref | XSC:Choice | XSC:Seq | 
XSC:Empty | XSC:Any | XSC:PCData | XSC:Mixed), XSC:AttDef*)>
<!-- id is the element name -->
<!ATTLIST XSC:ElementDecl XSC:id ID #REQUIRED >

The XSC:id attribute identifies the name of the element, and is required. An 
element declaration would look like:

<XSC:ElementDecl XSC:id="Species">
...additionalDeclarations... 
</XSC:ElementDecl>

This declaration would declare an element named "Species", which would appear 
in an instance as:

<Species>...content...</Species>

The XSC:id attribute must be unique, as it provides the name of the element as 
declared here, and is also used by other elements to refer to this element in 
their content model declarations. Note that an element must declare a content 
model, even if that content model is empty. Documentation (in the XSC:Doc 
element) and attribute declarations (using XSC:AttDef elements) are optional.

Documentation about the element, content-model information, and attribute 
information are stored as sub-elements of the XSC:ElementDecl element. 
Documentation is covered in 2.6.1, Documentation Extensions. Content Model is 
covered in 2.3, Content Model Declarations, and attributes are covered in 2.4, 
Attribute Declarations.


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.