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

Re: A thought on XLink in PIs for processing directives


xlink directives
Actually, I've been wondering why W3C XML Schema doesn't use processing 
instructions instead of the xsi:schemaLocation attribute. Multiple PI's 
seem to be better than a space-seperated list of URI's. Can somebody 
point me to the rationale?

Thanks,
Brian

Michael Brennan wrote:

> While tinkering with XLink and RDDL, I had an idea that I thought I'd toss
> out on this list. I'd be interested to know if there have been similar
> proposals in the past.
> 
> A number of specs put forward specialized mechanisms for associating
> external resources with a document for a specific purpose. For example, XML
> Schema gives us the "xsi:schemaLocation" attribute, XML Catalog gives us the
> "oasis-xml-catalog" PI, and for associating stylesheets, we have the
> "xml-stylesheet" PI. It seems like these could be unified into one
> generalized mechanism by building upon XLink and RDDL constructs. You
> couldn't use XLink syntax directly since these examples all must be declared
> before the document element or on the document element itself. But it seems
> to me that one could designate a generalized PI that mimics XLink simple
> links that could achieve the desired result.
> 
> For example, the attribute "xsi:schemaLocation='http://foo/bar foobar.xsd
> http://yadda/yadda yadda.xsd'" could become:
> 
>   <?xml-link role="http://www.w3.org/2001/XMLSchema"
> arcrole="http://foo/bar" href="foobar.xsd"?>
>   <?xml-link role="http://www.w3.org/2001/XMLSchema"
> arcrole="http://yadda/yadda" href="yadda.xsd"?>
> 
> The PI <?xml-stylesheet type="text/css" href="style.css"?> could become:
> 
>   <?xml-link
> role="http://www.isi.edu/in-notes/iana/assignments/media-types/text/css"
>           href="style.css"?>
> 
> The PI <?oasis-xml-catalog catalog="http://example.com/catalog.xml"?> could
> become:
> 
>   <?xml-link role="urn:oasis:names:tc:entity:xmlns:xml:catalog" 
>              href="http://example.com/catalog.xml"?>
> 
> This seems to me better than the current situation for the following
> reasons:
> * Provides a consistent, extensible mechanism for these sorts of processing
> directives.
> * Leverages namespaces and URIs for identifying the intent and purpose of a
> directive.
> * Does not clutter up the document's infoset with processing directives as
> attributes do.
> 
> Is this a reasonable idea or am I off my rocker on this? Have there been
> similar such proposals?
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 



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-2011 All Rights Reserved.