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

Re: SGML queries


omittag
"Bullard, Claude L (Len)" scripsit:

> *Bonehead elements* might be good.

Ho!

> Other than in 
> the SGML Handbook, I've never seen these used 
> in practice.

Well the document "<title>foo</title>bar" is valid HTML (not XHTML)
if appropriately decorated with a DOCTYPE declaration,
and means "<html><head><title>foo</title></head><body>bar</body></html>".
HTML 4.01 has four phantom elements: html, head, body, and tbody (inside
tables).

> Assuming that your SGML Declaration has "OMITTAG YES" 
> and you aren't playing with short tags.

Correct.

> "A start tag is omissible when the element type is 
> contextually required and any other elemnt types that 
> could occur are contextually optional." pg 74

Okay, fair enough.

> "Even when an element is contextually required, its 
> start tag cannot be omitted if the element type has 
> required attributes or a declared content, or if the 
> instance of the element is empty."  pg 75

Okay.  Required attributes have to go someplace, and EMPTY or CDATA or other
oddball contents can't just appear without any lexical labeling.

> Section 4.6.1 takes up the OMITTAG feature in more 
> detail.  If you don't have a copy of the handbook, 
> let me know and I will transcribe the relevant 
> page or two.

Thanks, I'd appreciate it.

-- 
John Cowan                              <jcowan@r...>
http://www.ccil.org/~cowan              http://www.reutershealth.com
Unified Gaelic in Cyrillic script!
        http://groups.yahoo.com/group/Celticonlang

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.