← Prev in month ← Prev in thread

[xml-dev] extending XHTML

From
Carlin Rogers <>
To
Date
2005-06-15T14:47:14Z
ID
<>
Thread
[xml-dev] extending XHTML
I hope this is kind of question is appropriate for this list. If 
not, please suggest a list that might help me find a solution.

I've have been unable to find a way to extend XHTML such that the 
document output from an application framework validates correctly.

The documents will include extra attributes on a small subset of
elements, like div. I'd like to avoid creating a custom DTD so
I've been using an internal subset of the DOCTYPE declaration.
For example, something like...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
[
  <!ATTLIST html
      xmlns:netui CDATA #FIXED "http://beehive.apache.org/netui/tags"
  >
  <!ATTLIST div netui:treename CDATA #IMPLIED>
]
>
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:netui="http://beehive.apache.org/netui/tags" >
  <head><title>Example</title></head>
  <body>
    <div netui:treename="Tree101">
      Stuff Here
    </div>
  </body>
</html> 

...where the div tag has the treename attribute from the
XML namespace, "netui" and the html element has the
attribute to declare the xmlns. This is a valid document.

The unfortunate problem in creating documents like this is
that they don't display correctly in IE. The browser
displays a leading "] >" at the top of the document. 

Are there other alternatives for this solution, other than
supporting and providing a custom DTD, such that the document
will both validate and display correctly? 

Thanks for your help. Kind regards,
Carlin
← Prev in month ← Prev in thread