[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] RE: Compelling use case for XML Catalogs?
- From: David Carlisle <davidc@nag.co.uk>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Mon, 13 Jun 2011 16:35:01 +0100
On 13/06/2011 16:24, Costello, Roger L. wrote:
> 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?
Not really.
A common (and probably original) scenario is that you have a certain
numer of locally installed dtd and a catalog mapping their canonical,
external, names to the local copies.
Your configuration (or physical lack of connectivity) means that
reference to external dtd will, in general, fail (which is what you
would want if you are paranoid) so using a catalog you can ensure that
the only external dtd that get referenced are the ones that you want to
allow.
As John says though, if the document has an internal subset then dtd
validation tells you nothing about the document other than that it is or
is not self consistent.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]