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

Re: Finally, what if namespaces == document types ?


Re:  Finally
Jonathan Borden wrote:

 > Paul Prescod wrote:
 >
 >
 >>...Do you agree that it makes more sense to associate
 >>schemas, stylesheets, etc. with document types than with namespaces?
 >>
 >
 > Actually I think the two are just different. It really depends on the
 > purpose of the association.


I agree.

[  snip ]

 >
 > Yes. That's probably the best idea. I don't personally have strong
 > preference for an attribute at the root element vs. a PI, I suppose there
 > are tradeoffs to each approach, which is why XML Schema uses an 
attribute.
 > But something like:
 >
 > <?rddl-doctype href="...uri..." ?>
 >
 > would also do the trick. I am interested to hear people's opinions on the
 > tradeoffs between the two options
 >

Actually, I think it may be perfectly okay to use W3C
XML Schema's xsi:type attribute and to have a
RDDL-(like) document at the named URI.

Right now, the thing at "http://www.rddl.org" starts like:

<!DOCTYPE html PUBLIC "-//XML-DEV//DTD XHTML RDDL 1.0//EN"
                       "http://www.rddl.org/rddl-xhtml.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns:rddl="http://www.rddl.org/"
		xml:lang="en"
		xml:base="http://www.rddl.org/">

One could make a version that looks like:

<!DOCTYPE html PUBLIC "-//XML-DEV//DTD XHTML RDDL 1.0//EN"
                       "http://www.rddl.org/rddl-xhtml.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:xlink="http://www.w3.org/1999/xlink"
       xmlns:rddl="http://www.rddl.org/"
		xml:lang="en"
		xml:base="http://www.rddl.org/"
       xmlns:rxh="http://www.rddl.org/rddl-xhtml"
       xsi:type="rxh:html"
 >

I'm not an expert on W3C schemas, by a long shot, but
it doesn't seem to preclude your putting whatever
you want at "http://www.rddl.org/rddl-xhtml"

Best,
Bill


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.