XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] RE: Compelling use case for XML Catalogs?

On Mon, June 13, 2011 4:24 pm, Costello, Roger L. wrote:
> 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 Catalogs are just data.  Throwing an error in the absence of a match,
forcing validation against a specified schema, and prohibiting network
access when validating are all things you would do in software.

See, e.g., the '--dtdvalid', '--relaxng', '--schema', '--schematron', and
'--nonet' options of 'xmllint' [1].  'xmllint' doesn't complain if the
document doesn't refer to a URI that's in a catalog, but you could modify
it to do so if you wanted, and you could do much the same as 'xmllint' in
any XML processor for which you had the source code (if it doesn't do it
already that is).

Regards,


Tony Graham                                   tgraham@mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming


[1] http://www.xmlsoft.org/xmllint.html
    The help for the under-documented '--nonet' option is:

      refuse to fetch DTDs or entities over network


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


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS