Scott Andrew - lo-fi acoustic pop superhero!

Join the Demo Club to unlock new music, get discounts, tour dates and other neato stuff:

or learn more here.

September 22, 2002

The X Is For Extensible, Not XML

Further proof that people who read this site are often far smarter that I am: a few wrote in pointing out that the DTD for XHTML Strict allows for only one namespace, fixed at http://www.w3.org/1999/xhtml. So technically the W3C validator has every right to choke on additional namespaces. Removing the DOCTYPE allows the page to validate, but then you have a different problem: your document is now pure XML, so the validator doesn’t catch your XHTML-specific errors if your markup is well-formed.

I had always assumed that XHTML was more XML than HTML, but it appears to be the other way around. It seems perfectly fine to use XHTML 1.0 as a stricter replacement for HTML 4.01. To take advantange of the bleeding-edge XML qualities of XHTML, it looks like the best option for now is to go all-out XML, import whatever XHTML elements you need with namespaces and hope the browser comprehends. Or, use some backend transformation (XSLT, perhaps) to provide HTML to the browser from your XML. In the meantime, I will continue to grumble at the complexity of it all.

No Comments

Leave a Comment

Close
  • E-mail
  • Social Web

Email this page to a friend:

E-mail It

Buy Music

Download Scott Andrew tracks from iTunes Find Scott Andrew at Rhapsody Find Scott Andrew at Amazon Find Scott 
Andrew at CD Baby

New Videos

More Videos

Photos

More Photos at Flickr

Recent Reader Comments

  • Adam Sampson: Excellent; I'll look forward to the release of Sin...
  • michael: Well ain't that a hoot! A couple midwesterners tur...
  • big daddy d: still can't beat the andrew, spaly, jolin "Peace o...
  • big daddy d: good room sound. would you play their again?
  • big daddy d: hey he's driving on the wrong side of the road.