[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] RE: Compelling use case for XML Catalogs?
- From: Chris Maloney <voldrani@gmail.com>
- To: stephengreenubl@gmail.com
- Date: Mon, 13 Jun 2011 12:21:07 -0400
On Mon, Jun 13, 2011 at 11:41 AM, Stephen D Green
<stephengreenubl@gmail.com> wrote:
> I think XML Catalogs would be more interesting if, besides binding
> URLs to internal resources, they could bind namespaces to internal
> resources.
As Michael says, this use-case is already supported. The values of
namespace nodes are URIs (sort of), and XML Catalogs can map any URIs
onto any other URIs (local usually).
> Still, there would be limitations which might be quite irksome
> though, such as: Binding a namespace to a local schema might be
> then be achievable, but what about stylesheets, etc? It would have to
> be a lot more sophisticated to handle all the kinds of scenarios Roger
> seems to be envisioning, such as all the uses of URLs with XML.
What you want here is an RDDL, if that's still in vogue. See (for
example) "RDDL Me This: What Does a Namespace URL
Locate?",http://www.xml.com/pub/r/1003
In general, if you're going to put a namespace URI into a catalog, I'd
think you'd just want to grab a local copy of whatever that URI points
to, and set your catalog to resolve to that local copy ... just as
with any other type of resource.
>
>
> On 13 June 2011 16:28, David Lee <dlee@calldei.com> wrote:
>>
>> Interesting question, but I fail to see the issue.
>> What would be the use of an XML Catalog that "handled" unknown or
>> unexpected
>> URL's ?
>> What would be the expected behavior (besides "not found") for a URL which
>> was not registered in the catalog ?
>>
>>
>> ----------------------------------------
>> David A. Lee
>> dlee@calldei.com
>> http://www.xmlsh.org
>>
>> -----Original Message-----
>> From: Costello, Roger L. [mailto:costello@mitre.org]
>> Sent: Monday, June 13, 2011 11:25 AM
>> To: xml-dev@lists.xml.org
>> Subject: RE: [xml-dev] RE: Compelling use case for XML Catalogs?
>>
>>
>> John Cowan responded to my post:
>>
>> > Does XML Catalog have the ability to express this:
>> >>
>> >>[snip various conditional things]
>> >>
>> >> No, of course not. Catalogs can only express one thing: when you
>> >> see this URI, use this other URI instead. (And ditto for public
>> >> identifiers.)
>>
>> The inability of XML Catalog to check for the presence of correct URLs
>> seems
>> like a significant limitation.
>>
>> XML Catalog only works if:
>>
>> - you have pre-knowledge of exactly what URLs will
>> be present in the XML (XSLT, XSD, RNG, SVG, etc.)
>> documents that you receive/process
>>
>> - the XML documents will always contain the correct
>> URL; there will never be any accidental or malicious
>> alteration of URLs
>>
>> Yes?
>>
>> /Roger
>>
>>
>> _______________________________________________________________________
>>
>> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>> to support XML implementation and development. To minimize
>> spam in the archives, you must subscribe before posting.
>>
>> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
>> subscribe: xml-dev-subscribe@lists.xml.org
>> List archive: http://lists.xml.org/archives/xml-dev/
>> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>>
>>
>>
>> _______________________________________________________________________
>>
>> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>> to support XML implementation and development. To minimize
>> spam in the archives, you must subscribe before posting.
>>
>> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
>> subscribe: xml-dev-subscribe@lists.xml.org
>> List archive: http://lists.xml.org/archives/xml-dev/
>> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>>
>
>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]