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

 


Help: OASIS Mailing Lists Help | MarkMail Help

entity-resolution message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: RE: locating schemas via public ids


Paul Grosso wrote on January 24, 2001 6:22 PM

>I think it "works", but it may be considered too ugly to be
>acceptable.

Provided that it works, I don't think that it is too high a price to pay for
the ability to keep the hint for PUBLIC identifier in (mostly) the same
format as the rest of the structured information world.

Regards,
David Leland

-----Original Message-----
From: Paul Grosso [mailto:pgrosso@arbortext.com]
Sent: Wednesday, January 24, 2001 6:22 PM
To: entity-resolution@lists.oasis-open.org
Subject: Re: locating schemas via public ids


At 12:50 2001 01 24 -0500, Norman Walsh wrote:
>Paul suggested (and then retracted) an extension to the xsi:schemaLocation
>hint that would have allowed public identifiers:
>
>	 xsi:schemaLocation='
>             "-//OASIS//DTD DocBook XML Schema V4.1.2.2//EN"
>             docbook.xsd
>	     http://www.oasis-open.org/docbook/xmlschema/4.1.2
>             docbook.xsd'>
>
>I was concerned that the public and system identifiers could not be
>disambiguated in that string, but Paul's intent (IIUC) was that a
>quoted string was a public identifier and an unquoted one was a system
>identifier.

No, that's not what I said.  (For details of what I said, see
my earlier email, but it's obvious an example is needed.)

I'm not sure how to read your example, but let's start with:

	 xsi:schemaLocation='
	     http://www.oasis-open.org/docbook/xmlschema/4.1.2
             docbook.xsd'>

which has a single namespace-name/external-id pair.  My
suggestion would keep the namespace-name/external-id pairing
concept, but it would allow any member of any pair
to be optionally quoted.  Therefore, the following would
be allowable and equivalent to the above:

	 xsi:schemaLocation='
	     http://www.oasis-open.org/docbook/xmlschema/4.1.2
             "docbook.xsd"'>

Now assume we want to add info about the public id to the
external-id member of the pair in the above example.  My
suggestion would augment the allowable syntax for the 
external-id part to allow the specification of a public id
(as well as the system id).  In my suggested syntax, it would read:

	 xsi:schemaLocation='
             http://www.oasis-open.org/docbook/xmlschema/4.1.2
             "PUBLIC '-//OASIS//DTD DocBook XML Schema
V4.1.2.2//EN'
             docbook.xsd"'>

where the entire double-quoted string is the second member of
the pair and it consists of a string that looks just like the
external identifier of a doctype decl would look.  The problem
is that this requires three levels of quotes, so the innermost
ones end up having to be escaped as ' in my example.

I think it "works", but it may be considered too ugly to be
acceptable.

paul


**********************************************************************
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the addressee.  If you are not 
the intended addressee, you must not disclose, copy or take any action
in reliance of this transmission.  If you have received this 
transmission in error, please notify us by return and delete the same.
Further enquiries/returns can be posted to postmaster@informa.com
Thank you.
**********************************************************************


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC