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

Re: XSchema: New draft of John Cowan's proposal

  • From: Toby Speight <tms@a...>
  • To: "XML developers' list" <xml-dev@i...>
  • Date: 04 Jun 1998 15:16:47 +0100

cowan s model
John> John Cowan <URL:mailto:cowan@l...>

=> In article <199806041416.KAA17908@l...>, John wrote:

John> One problem with XML is that there's no way to say "Attribute B
John> is #REQUIRED iff Attribute A has value 'foo'".

Yes.  This is why I like your use of elements for specifying
defaulting of attributes.  My vote is keep it.

>> instead of having freely mixable content of (ELEMENT|ENTITY|NOTATION)*,
>> it might be better to enforce the grouping of declarations: (NOTATION*,
>> ENTITY*, ELEMENT*).

John> How Pascal-ish!

<g>

John> No, I think it's better to be freely able to associate things
John> that go together in linear order.

I can't remember (nor find easily in the spec) whether notations must
be declared before use.  If so, then I think we should consider
echoing that constraint, to simplify conversion to DTD.  Apart from
that consideration, I have no preference (and it's easy to transform
the document algorithmically, if required).


John> Indeed, I'm thinking that XSchemas should have structure, ...

Sorry, you lost me with this paragraph.  Can you illustrate it with an
example?


>> <!-- use #PCDATA for this now; we can loosen the content model as the
>> spec evolves (in particular, we will want to link to IDs
>> elsewhere in the XSchema -->
>> <!ELEMENT DOC (#PCDATA)>

John> I still think that ANY is the right thing, so that arbitrary
John> markup (XHTML or XTEI or whatever) can be used here.

I'm not keen on arbitrary markup, because I'm interested in processing the
documentation with DSSSL to give a pretty-printed human-readable document
to go with the DTD.  It's hard to do that if you don't know what elements
to expect.  And, as I mentioned, we'll want some XSchema-specific elements
to refer to ELEMENT definitions (for example).


>> Do individual ENUM values need documenting?  Or is it sufficient to
>> have the DOC in ATT describe them?

John> I would say yes, they should allow documentation, for modularity.

<!ELEMENT ENUM (DOC)>


>> Do entities and notations need documentation?

John> Surely!  One purpose of documentation is to describe *purpose*, and
John> understanding a notation will often require knowing its purpose:
John> not everybody knows what "PERL5.x" means, still less "RipScrip2.0".

Okay; adding DOC to ENTITY is trickier than the other cases, since its
content-model is #PCDATA - actually, the more I think about it, the
more difficult it seems to treat internal and external entities the
same:

<!ELEMENT EXTERNAL-ENTITY (DOC)>
<!ATTLIST EXTERNAL-ENTITY
	%external;
	notation CDATA #IMPLIED>
<!ELEMENT INTERNAL-ENTITY (DOC)>
<!ATTLIST INTERNAL-ENTITY
	value CDATA #REQUIRED>

Documenting NOTATION is trivial.

>> A final comment, on conformance: should valid documents having
>> a DTD which uses the XSchema DTD as a base architecture be
>> considered conformant?  Or should we insist that only the
>> results of architectural forms processing can qualify?  (Using
>> architectural forms means that an internal subset may be used
>> if it is compatible with the base architecture.

John> I can't comment, as I don't understand architectural forms.  Can
John> you give a simple concrete example?

Not really - I think there are other people on this group who are more
qualified than I to do that.  I've only used architectural forms to
create DSSSL documents, and that was very much a trial-and-error
process.  But my motivation stems from the fact that DSSSL documents
must only satisfy the architectural form; this enables individual
(derived) DTDs to use e.g. their own names for the elements (perhaps
in an author's native tongue), but prevents internal subset extensions
from changing the allowed model.

-- 


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.