[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xhtml and the p tag
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|