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

Re: XML and HTML Intermixed

  • From: Jon.Bosak@E... (Jon Bosak)
  • To: xml-dev@i...
  • Date: Thu, 26 Jun 1997 21:37:09 -0700

intermixed
[Bob Seibel:]

| Let's say I used a style sheet to display the contents. It seems to me
| that using HTML tags intermixed with XML tags is a good thing. I don't
| have to reinvent my own tags when HTML already defines them.

You can mix tags all you want; with the exception of a handful of
reserved names, the XML name space belongs to you.  But this means
that "UL" has no more meaning to an XML processor than "SOLUTION"
does; in both cases, you must use some other mechanism to specify the
semantics.  The most common mechanisms are going to be Java classes or
stylesheets.

Some people have suggested the definition of an "HTXML" to grandfather
existing HTML tags but let you define any other tag that is not HTML.
One great big problem with this approach is that if HTXML is based on
HTML 4.0 (say), and HTML 4.0 has no SOLUTION tag, and therefore you
use SOLUTION all through your documents assuming a particular meaning
for SOLUTION, and then in HTML 4.1 a tag named SOLUTION with a
different meaning is defined, you're hosed.

A possible way out of this would be to define a reserved attribute to
tell an XML browser that you want some element type to have the
semantics of some HTML tag:

   <BULLETLIST XML-HTML-EQUIV="UL"> ... </BULLETLIST>

This has some advantages, but given the speed with which XML is
moving, I personally am not persuaded that it's worth the trouble.

Jon


xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


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.