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

Re: xhtml and the p tag

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "Mark D. Anderson" <mda@d...>,"XML List" <xml-dev@i...>
  • Date: Tue, 30 Mar 1999 11:44:33 +1000

xhtml p ul
 From: Mark D. Anderson <mda@d...>

>>In HTML 4.0 a paragraph can only contain an inline element, just the
same as
>>in XHTML
>
>Right; html is broken too. But I've already given up on html :).
>
>I'm still curious what a better content model for paragraphs
>would be. (Sorry, i suppose this topic belongs somewhere else
>even if xhtml-related; suggestions are welcome.)

The distinction between text-blocks and rhetorical paragraphs is the
oldest problem in markup.

It is sad that HTML calls visual text blocks paragraphs, but should not
be surprising or particularly troubling (it will just make it impossible
to detect rhetorical paragraphs programatically from HTML documents.)

The best solution is to wrap the real paragraphs in a div element:
 <div class="para">
    <p>...</p>
   <ul>...</ul>
   <p class="paracont">...<p>
  </div>
where para cont means "paragraph contiunuation".

Now that we have XSL, it is probably a good thing if HTML errs on the
side of being display-structure oriented. That is why the ruby draft
(which is all wrong if we want HTML to support logical markup) is
probably appropriate for HTML now.

Actually, there is even a higher level of paragraph, the "paragraph
group", which is found in some kinds of documents (military and
technical), which is where a paragraph grows a numer, a heading (often
inline), footnotes and even metadata. (The reasons for this, you can
find in my book, The XML and SGML Cookbook: basically the idea is that
when an information block is self-contained or extractable, it naturally
becomes a microdocument, getting all the accoutrements of a doument--a
head an body, title, etc.)

Rick Jelliffe



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/ and on CD-ROM/ISBN 981-02-3594-1
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.