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...
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
2010-07-12 04:03:21 ariakerry
Very nice article. I read your XML-Deviant column last summer and it really helped me understand how important XHTML is.
web design (http://www.designerevaluation.com/web-design/)
I have liked your thoughts on XTML. I am going to subscribe your post and will come here again to know more. thanks, Iraqi Dinar (http://dinariraqi.net/)
Its wonderful how little creatures like mussels can dirt free freshwater. But you comprise to agree that while may clean the water, the dirt has to go anywhere else and come back to the water in the form of feces. The dilemma is that if there are 10 species that keep the water clean, there will be 100 that unclean it. Iraqi Dinar (http://tampadinar.com)