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

extending XHTML

  • To: xml-dev@l...
  • Subject: extending XHTML
  • From: Carlin Rogers <carlin.rogers@g...>
  • Date: Wed, 15 Jun 2005 08:47:14 -0600
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jgmMeVCMqWZ/ZohhufkBTbnK61PkSuNZPolHoId/cPYenEN6KeXSjPT/vwds/Njb1B33hJrbqsAbt2KCyuvYX+0Ib5A+sSA9HLv3mrS/B4stvskDcxUbUpZs2kSUxZipoo01abJ8vDgFADO/6oU4Von/ThirEkDLPYNkeIWttl4=
  • Reply-to: Carlin Rogers <carlin.rogers@g...>

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

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.