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

Re: RDDL and document types was : Re: The task to be


types of e documents
Jonathan Borden wrote:

<snip/>

> The 'problem' is that a given document does not define a single document
> type, nor does a namespace define a document type, so that a mechanism is
> required to indicate which 'type set' a document is intended to belong to.
> 
> e.g. <!DOCTYPE or xsi:schemaLocation="..."
> 
> How might RDDL help?
> 
> Perhaps we could define a _purpose_ to indicate document type:
> 
> http://www.rddl.org/purposes#document-type
> 
> and then the _set_ of all document types an instance is intended to belong
> to would be referenced by the set of all rddl:resources that have this
> purpose, but whose nature indicates the particular schema definition
> language used to define the type.
> 
> We still need a means to connect the instance to the document type set
> definition. It would be really nice to use the <!DOCTYPE declaration for
> this, but this has already been hardwired to DTDs... and so the Public
> Identifier cannot be connected to a RDDL document by this mechanism.
> 
> Perhaps an attribute:
> 
> <root rddl:doctype="....a RDDL directory of 'document types' ...">

I don't particularly like this. For one, the rddl:doctype attribute is
essentially a processing directive. I think a PI would be more
appropriate. (XML Schema set a bad precedent in this regard, IMHO.) I'm
also not convinced that a specialized attribute or PI and specialized
purpose are needed.

I still like the XLink-in-a-PI idea I tossed out awhile ago, but oh
well. Instead of yet another PI/attribute for one narrow purpose of
associating one narrow type of resource with a document, why not a PI
that can associate a linkbase with a document? That linkbase could have
an extended link associating outbound links with a DTD public ID or
system ID. Then you can associate resources with a DOCTYPE in a way that
affords greater flexibility than RDDL. The linkbase could also associate
links with namespaces (as RDDL does) or other resources, even non-XML
resources.

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.