Re: VOTable doc

From: Paul Harrison <pharriso-at-eso.org>
Date: Tue, 20 Feb 2007 11:26:40 +0100


On 20.02.2007, at 10:30, Andreas Wicenec wrote:

> Hi Francois,
>
> Bruno just pointed out a small problem in the VOTable document.
> Section 3.1 Example contains a pointer
> to a non-existing URL xsi:noNamespaceSchemaLocation="http://
> www.ivoa.net/xml/VOTable/VOTable/v1.1". That is
> causing problems with schema verification and I think should be
> corrected in the next version.
>
> Cheers,
> Andreas

actually the problem is not just that it points to a non-existent schema, but also using the xsi:noNamespaceSchemaLocation imperative is also incorrect, as the votable elements are declared to be in "http://www.ivoa.net/xml/VOTable/v1.1" namespace

<xs:schema

    xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"

    targetNamespace="http://www.ivoa.net/xml/VOTable/v1.1"     xmlns="http://www.ivoa.net/xml/VOTable/v1.1"  >

so the header should be

<VOTABLE version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"
  xmlns="http://www.ivoa.net/xml/VOTable/v1.1" xsi:schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1 http:// www.ivoa.net/xml/VOTable/v1.1">

I suspect a header such as the one in the standard would cause some parsers effectively not to validate the document at all, but merely check for well-formedness.

A quick random check of some services reveals that a few are returning tables that are not strictly votable 1.1 valid against the schema.

Paul. Received on 2007-02-20Z11:26:59