W3C home > Mailing lists > Public > www-style@w3.org > August 1997

Context Selectors and SGML

From: Neil St.Laurent <neil@bigpic.com>
Date: Mon, 18 Aug 1997 06:11:21 -0600
Message-Id: <199708181206.GAA01452@underworld.bigpic.com>
To: www-style@w3.org
This sort of came to my mind this moring.

CSS allows context distinctinos such as

UL UL LI
P B I
...

I find it kind of interesting that CSS let's one distinguish 
presentation based on this type of context model and that SGML itself 
doesn't make any distinction above a single level of context -- ie:
UL UL LI
is treated the same as:
UL LI
and
P OL UL UL UL UL LI

It's only the browsers display that has added this extra meaning.

Now I suppose this could have gone to the html list as well, but are 
there any markup languages that truly distinguish content based on 
context -- this would help solve problems like <INPUT> outside of a 
<FORM>.

It'd also sort of allow things such as:
Property: display
Value: variant
Where it's variant such that if an inline element is allowed then 
it's inline, otherwise it's block-level.

This would provide a better quoting mechanism, consider:

<P>And then Bert said <Q>Inline quoting would be good</Q>, but Chris 
was quick to retort:</P>

<!-- note we're at block-level now-->

<Q>I can't image the headache that would give to the browser 
implementators!</Q>

__
| Mortar: Advanced Web Development <http://bigpic.com/mortar/>
| Neil St.Laurent  neil@bigpic.com
| Big Picture Multimedia
Received on Monday, 18 August 1997 08:07:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:51 GMT