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

Do we need link-catalogs for schemas? (was Re: More namespaces perversio

  • From: Rick Jelliffe <ricko@a...>
  • To: xml-dev@i...
  • Date: Mon, 12 Oct 1998 00:07:27 +0800

microsoft schemas
  Charles Frankston ¼g¹D¡G

> Is there one "link-catalog" per document, or can I nest and scope
them?
> I.e. how do you deal with the fragment composition issue?

At its simplest, the link-catalog is just aweb of XLL extended pointers,
with
roles given using some nice FPI/URN mechanism.   I dont see that it
should matter
if all the links were put in the same entry in the same resource:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>
or inn different entries in the same resource
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
 </entry>
 <entry id="lc2" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>

or even in different resources
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
 </entry></XML-DEV:link-catalog>


<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>

I leave out other examples where one link in an entry merely points to
another
link in another entry, or points to another link-catalog in another
resource.
The link-catalog does nto need to be part of a document: it can be part
of an
application--an XML editor from Microsoft would presumably infer a
link-catalog
linking to Microsoft schema data (using Microsoft schema notations) in
augmentation to whatever link-catalogs were present in the particular
document
instance (or #FIXED linked from its DTD).

For nesting and scoping, a link-catalog link for the doctype element
(i.e. the
root) is enough to locate a whole schema. Minimally, all that is needed
is an
entry for every unique namespace. But individual entries can be used to
annotate
and extend schemas for particular purposes, in particular by adding
sub-schemas
and documentation.  This is how people would expect such a link-catalog
to work.

Delegation is fine to provide, if users expect it.

The use of such a mechanism allows registration of various subclassing
mechanisms
too so that local poicy can be implemented:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="html4/p/id-check.jar/"
            role="-//Rick Jelliffe//NONSGML Java program to check a DOM
that
                        paragraph IDs start with small letter p//EN" />
 </entry></XML-DEV:link-catalog>

In that case, the link invokes a validation program. My kindly browser
manufacturer might even define callbacks into which I can put data entry

programs:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="table" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="html4/table-entry.jar/"
            role="-//IDN ms.com//NONSGML IE6 Data Entry Program//EN" />
 </entry></XML-DEV:link-catalog>
I
As far as nesting and scoping, I would tend not to want to provide any
mechanism.
The idea is to create a web of type-links which augment each other
rather than
replace. But I cannot see why any vendors could not implement their own
policy:
to ignore (but not delete) links using other vendor's schema or to
automatically
add or infer links to schemas at their own site. Or to prefer "close"
entries in
preference to "far" entries.  I want to allow Microsoft to come up with
their own
schema system and to compete on that, but not exclude another vendor
from also
having their own system.

For new readers, the "composing of fragments issue" is this: if we cut
out a WF
fragment of one document and paste it into another, how can we cart
along all the
other information (catalogs, schema data, type links, etc).  The
important thing
is that the link catalog entries are organized to GIs (other things may
be
possible, but I want to get GIs right first): these entries can be cut
up into
fragments just as simply as a document can be.

In a link-catalog system, the schemas themselves (or CSS, or whatever)
are not
cut up with the document.  The same code which corrects the namespace
declarations during such cut and pasting also has enough information to
correct
link-catalogs.  (Whether the link-catalog can stay the same (in which
case a
fragment carts around some of its orinigating context, which may be an
OK thing),
or just have the GI changed to the GI of the fragment, is not clear to
me. )

In a sense, there are already many kinds of data which are crying out
for this
kind of link:
MIME catalogs, CSS/XSL, Web schemas, all of these are based on linking
from type
information.  (Actually, I suppose that with the namespace proposal,
even OASIS
SOCATs fall into class of inforamtion, to a certain extent. In the case
of MIME
catalogs, the grain is kept at the highest level, in the case of
CSS/XSL, the
grain is quite detailed structured information. We see on XML-DEV at the
moment
several discussions on how to create objects by linking methods to GIs.

The web would be richer, and many kinds of systems simpler, if there
were a nice
simple mechanism for doing this, such as this kind of link-catalog.  As
I have
mentioned, I am not sure that there is a great need for a Web-Schema
system, such
as is being proposed. I think it would be much  better fro W3C to agree
on simple
datatyping, and then agree on some link-catalog system with some
predetermined
FPIS so that basic standard schemas can be invoked (and also CSS, XSL,
DTDs, RDF,
SOCATs, MIME catalogs, etc).  That leaves vendors free to develop
schemas which
are optimized for their constituency in whatever ad hoc consortia are
commercially appropriate.

In ISO I noticed a very strong feeling that when a standard moved to far
from
"infrastrucutre" to "application" it all got too political and
unsatisfactory,
and even perhaps anti-competitive and futile.  One might think that a
schema
definition language is "infrastructure", but I rather fancy that it
might be
closer to "application", in that it undoubtedly will reflect the
capabilities of
the commercial products of its developers.


 Rick Jelliffe




  • From: Rick Jelliffe <ricko@a...>
  • To: Charles Frankston <cfranks@m...>
  • Date: Sun, 11 Oct 1998 13:14:09 +0800


Charles Frankston ¼g¹D¡G

> Is there one "link-catalog" per document, or can I nest and scope them?
> I.e. how do you deal with the fragment composition issue?

At its simplest, the link-catalog is just aweb of XLL extended pointers, with
roles given using some nice FPI/URN mechanism.   I dont see that it should matter
if all the links were put in the same entry in the same resource:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>
or inn different entries in the same resource
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
 </entry>
 <entry id="lc2" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>

or even in different resources
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
       <!-- links to schemas -->
        <a href="www.w3.org/html4.dtd#p"
            role="-//www.w3.org//NOTATION XML DTD//EN" />
 </entry></XML-DEV:link-catalog>


<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="www.schema.net/Xschema/html4.xml#p"
            role="-//www.w3.org//NOTATION XSchema//EN" />
 </entry></XML-DEV:link-catalog>

I leave out other examples where one link in an entry merely points to another
link in another entry, or points to another link-catalog in another resource.
The link-catalog does nto need to be part of a document: it can be part of an
application--an XML editor from Microsoft would presumably infer a link-catalog
linking to Microsoft schema data (using Microsoft schema notations) in
augmentation to whatever link-catalogs were present in the particular document
instance (or #FIXED linked from its DTD).

For nesting and scoping, a link-catalog link for the doctype element (i.e. the
root) is enough to locate a whole schema. Minimally, all that is needed is an
entry for every unique namespace. But individual entries can be used to annotate
and extend schemas for particular purposes, in particular by adding sub-schemas
and documentation.  This is how people would expect such a link-catalog to work.

Delegation is fine to provide, if users expect it.

The use of such a mechanism allows registration of various subclassing mechanisms
too so that local poicy can be implemented:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="p" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="html4/p/id-check.jar/"
            role="-//Rick Jelliffe//NONSGML Java program to check a DOM that
                        paragraph IDs start with small letter p//EN" />
 </entry></XML-DEV:link-catalog>

In that case, the link invokes a validation program. My kindly browser
manufacturer might even define callbacks into which I can put data entry
programs:
<XML-DEV:link-catalog>
    <entry id="lc1" GI="table" namespace="urn:www.w3.org/html4#p" >
        <description>Links for HTMLs P element type</description>
        <a href="html4/table-entry.jar/"
            role="-//IDN ms.com//NONSGML IE6 Data Entry Program//EN" />
 </entry></XML-DEV:link-catalog>
I
As far as nesting and scoping, I would tend not to want to provide any mechanism.
The idea is to create a web of type-links which augment each other rather than
replace. But I cannot see why any vendors could not implement their own policy:
to ignore (but not delete) links using other vendor's schema or to automatically
add or infer links to schemas at their own site. Or to prefer "close" entries in
preference to "far" entries.  I want to allow Microsoft to come up with their own
schema system and to compete on that, but not exclude another vendor from also
having their own system.

For new readers, the "composing of fragments issue" is this: if we cut out a WF
fragment of one document and paste it into another, how can we cart along all the
other information (catalogs, schema data, type links, etc).  The important thing
is that the link catalog entries are organized to GIs (other things may be
possible, but I want to get GIs right first): these entries can be cut up into
fragments just as simply as a document can be.

In a link-catalog system, the schemas themselves (or CSS, or whatever) are not
cut up with the document.  The same code which corrects the namespace
declarations during such cut and pasting also has enough information to correct
link-catalogs.  (Whether the link-catalog can stay the same (in which case a
fragment carts around some of its orinigating context, which may be an OK thing),
or just have the GI changed to the GI of the fragment, is not clear to me. )

In a sense, there are already many kinds of data which are crying out for this
kind of link:
MIME catalogs, CSS/XSL, Web schemas, all of these are based on linking from type
information.  (Actually, I suppose that with the namespace proposal, even OASIS
SOCATs fall into class of inforamtion, to a certain extent. In the case of MIME
catalogs, the grain is kept at the highest level, in the case of CSS/XSL, the
grain is quite detailed structured information. We see on XML-DEV at the moment
several discussions on how to create objects by linking methods to GIs.

The web would be richer, and many kinds of systems simpler, if there were a nice
simple mechanism for doing this, such as this kind of link-catalog.  As I have
mentioned, I am not sure that there is a great need for a Web-Schema system, such
as is being proposed. I think it would be much  better fro W3C to agree on simple
datatyping, and then agree on some link-catalog system with some predetermined
FPIS so that basic standard schemas can be invoked (and also CSS, XSL, DTDs, RDF,
SOCATs, MIME catalogs, etc).  That leaves vendors free to develop schemas which
are optimized for their constituency in whatever ad hoc consortia are
commercially appropriate.

In ISO I noticed a very strong feeling that when a standard moved to far from
"infrastrucutre" to "application" it all got too political and unsatisfactory,
and even perhaps anti-competitive and futile.  One might think that a schema
definition language is "infrastructure", but I rather fancy that it might be
closer to "application", in that it undoubtedly will reflect the capabilities of
the commercial products of its developers.


 Rick Jelliffe




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.