XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 XHTML is the Most Important XML Vocabulary
Subject: Wrong usage of the 'class' attribute on
Date: 2003-05-23 02:21:17
From: J D

The XHTML2 draft spec linked to specifies <blockcode> as only using the 'Common' attribute collection (http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-block-text.html#edef_block-text_blockcode), ie 'class' in this case is for presentation (style) purposes only.


I'd speculate that it's only used in the example to illustrate how you might differentiate code samples of different types(presentationally). It should perhaps explicitly say that in the spec...


No Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Wrong usage of the 'class' attribute on
    2003-05-23 08:44:04 Kendall Clark [Reply]

    JD,


    Good catch! You're exactly right, of course. I had meant to include a paragraph about how, in addition to presentational "class" attribute, blockcode should also have an attribute indicating, by way of a URI or URN, the kind of programming language contained within the block. But I couldn't think of a good name for this attribute...


    Thanks.


    Kendall Clark

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938