Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

proposal for change of Flow.model

From: Sjoerd Visscher <sjoerd@w3future.com>
Date: Sun, 25 Jul 2004 06:07:29 -0400 (EDT)
Message-ID: <4103864E.8030706@w3future.com>
To: www-html@w3.org




Hi,

(If this has come up before I'm sorry, Google didn't turn up anything
for me)

Now XHTML 2.0 uses Relax NG, it might be a good idea to use RNGs power
to change Flow.model to what it really means: a choice between either
text and inline elements, or block elements:

   <define name="Flow.model">
     <choice>
       <ref name="Structural.model"/>
       <ref name="Text.model"/>
     </choice>
   </define>

The models for blockcode, blockquote and p would have to change similarly.

This means that the following would no longer be valid:

   <section>
     Some text...
     <p>Some more text in a paragraph.</p>
   </section>

One reason this came up was because of experience with Xopus, a WYSIWYG
XML editor which makes a clear distinction between inline and
block-level elements. Not having to deal with inline and block elements
at the same level gives a much better editing experience.

Applying CSS or XSL to this model is also much more straightforward.

For similar reasons the text model could be changed so:

   <define name="Text.model">
     <choice>
       <zeroOrMore>
         <choice>
           <text/>
           <ref name="Text.class"/>
           <ref name="Misc.class"/>
         </choice>
       </zeroOrMore>
       <zeroOrMore>
         <ref name="l"/>
       </zeroOrMore>
     </choice>
   </define>

Which says that text is either grouped per line, or not at all. (<l>
would be removed from Text.class) I think it makes sense, but I'm not
sure. I haven't had a proper need for lines in my site yet. Whenever
lines seemed appropriate, lists were a better fit after some thought.

-- 
Sjoerd Visscher
http://w3future.com/weblog/ 
Received on Sunday, 25 July 2004 23:24:57 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.