OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   A thought on XLink in PIs for processing directives

[ Lists Home | Date Index | Thread Index ]

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:


The PI <?oasis-xml-catalog catalog="http://example.com/catalog.xml";?> could

  <?xml-link role="urn:oasis:names:tc:entity:xmlns:xml:catalog" 

This seems to me better than the current situation for the following
* Provides a consistent, extensible mechanism for these sorts of processing
* Leverages namespaces and URIs for identifying the intent and purpose of a
* 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?


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS