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

Re: XHTML 2 Working Group won't be renewed?

  • From: Laurens van den Oever <laurens@xopus.com>
  • To: "Simon St.Laurent" <simonstl@simonstl.com>
  • Date: Wed, 8 Jul 2009 17:41:38 +0200

Re:  XHTML 2 Working Group won't be renewed?
Simon St.Laurent <simonstl@simonstl.com> wrote:
> If you're scripting HTML, writing well-formed XHTML makes life vastly more predictable.
> The same is true to a lesser extent of CSS.

These problems are often underestimated. An example of the problems
you can encounter using HTML as a content storage format instead of
XHTML or another XML flavor consider the following:

<p class="para">text<ol><li>item</li></ol>text</p>

If you style this .para using CSS you will see that the second text
will not be styled. The <ol> will split the <p> and the class will
only be applied to the first text. This structure is not valid HTML,
but many HTML oriented tools will allow content authors to create such
structure because they are not strict (which is their main benefit).

Similarly:

<div>text<ol><li>item</li></ol>text</div>

vs

<div><p>text</p><ol><li>item</li></ol><p>text</p></div>

Both are valid HTML and will look the same without CSS, but when you
add CSS, both structures will be rendered differently:

ol { margin: 0 2em; }

These and related issues make restyling an HTML content repository
with more pages than you can manually check a nightmare and can make
an investment in X(HT)ML worthwhile.

Best regards,

Laurens van den Oever
CEO, Xopus BV

http://xopus.com
+31 70 4452345
KvK 27301795


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.