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

LISTRIVIA (Was Re: XML as a programming tool)

  • From: Peter Murray-Rust <peter@u...>
  • To: Sean Mc Grath <digitome@i...>, xml-dev@i...
  • Date: Sat, 20 Dec 1997 12:24:49

LISTRIVIA (Was Re: XML as a programming tool)
A lot of members on this list are new to XML and SGML, and will hope to
"learn as they read". (This can be quite hard as they may have
misconceptions through experience of "broken" HTML.) I think it will be
useful if all sample code is well-formed XML (rather than SGML) unless
explicitly specified. (e.g. if you include  SGML rather than XML, write
<!-- this is SGML, not XML -->
<!ELEMENT (Open|Close) EMPTY>



At 11:16 20/12/97 +0000, Sean Mc Grath wrote:
[... lots of very exciting stuff ...]

>a simple bank account model:
>
><!element BankAccount (Open,Transactions,Close)>
><!attlist BankAccount Balance CDATA>
><!element Open,Close EMPTY>
><!element Transactions (Debit|Credit|Enquiry)*>
><!element Debit (FundsAvailable|FundsNotAvailable)>

This isn't WF XML for several reasons. A correct version might read:

<!ELEMENT BankAccount (Open,Transactions,Close)>
<!ATTLIST BankAccount Balance CDATA #REQUIRED>
<!ELEMENT Open EMPTY>
<!ELEMENT Close EMPTY>
<!ELEMENT Transactions (Debit|Credit|Enquiry)*>
<!ELEMENT Debit (FundsAvailable|FundsNotAvailable)>

>...
[...]
>
>within a syntactic asses roar of DTDs.  A Jackson structure editor is a bit

We all make syntactic asses of ourselves and I have done so on numerous
occasions, especially on XML-SIG. People have been very patient - "they
know what I mean". But here the readers *don't* know what you mean. So we
can all try to be well-formed asses :-). 

Therefore:
(a) try to be very careful about XML examples and related matters. People
will say "this is written by an expert so it must be right - I'll cut and
paste it..."
(b) tactfully and gently correct any errors that *do* get through. It won't
be taken badly - we all make errors.  For example I've corrected the
"element" to
"ELEMENT" as this is now required by the PR. [At one stage it wasn't, and
it's often easy to work with outdated versions.]. If it's unclear, you
might ask
"why isn't this "X"? - the answer may be revealing.

I have *never* seen any flames on these lists when people are corrected for
genuine mistakes.

	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@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.