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

Re: SGML queries


aray sgml

Arjun Ray wrote:

> Yes, we (qua DTD designers) know this.  To guard against *inadvertent*
> error - which was my point - the user would have to be given a different
> explanation or rule of thumb ("Always provide title text, don't leave that
> part blank!")  If they internalize this, very good.

If the start and end tags were required, would you likewise tell them 
"don't just put in <title></title>"?

Markup people don't flip back and forth between the DTD and the instance 
- they take their cues from the hardcopy (or whatever) and then from 
experience. They may not know that a title element will eventually be 
wrapped around the text that immediately follows the start tag for 
section, and why should they? Markup is about providing sufficient 
structural definition, it's not about labelling things.

> I've found "Always start text with a tag that describes it" much easier to
> teach.  Diff'rent strokes fer diff'rent folks...

Agreed, but will you require them to continue to insert the tag long 
after they understand the structure? If, after they had marked up, say, 
a couple of thousand sections each you told them "from now on, if you 
don't want to put in the start tag for a title, then don't" how many do 
you think would keep doing it? Not many, would be my guess.

> Sorry, I don't understand this.  Who said anything about *wanting* to
> create invalid data?

Sections begin with a required title. Whether the start tag of the title 
is omissable or not doesn't change that in any way. The fact that a user 
might create invalid data by leaving out the title element has nothing 
whatsoever to do with omissability.


-- 
Regards,

Marcus Carr                      email:  mcarr@a...
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
        - Einstein


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.