[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #NHF-285067]: Are these errors in oXygen for my catalog.xml worth worrying about?



Hi Rich,

The datasetFmrc element wasn't added to the THREDDS Catalog XML Schema until 
version 1.0.2. Your catalog includes the following link to the schema:

> xsi:schemaLocation="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0
>   http://www.unidata.ucar.edu/schemas/thredds/InvCatalog.1.0.1.xsd";

Changing that second URL to point to InvCatalog.1.0.2.xsd should get rid of 
your errors.

Two reasons it should work fine in the TDS:

1) The TDS ships with the current schema for that namespace which it uses in 
preference to a remote version even if xsi:schemaLocation is specified. 

2) The TDS is lenient when it comes to schema validation and ignores some of 
the element ordering and such that the schema defines (mainly things that would 
be cumbersome to not define in the schema).

Ethan

Rich Signell wrote:
>
> In my THREDDS catalog, I'm getting two errors from oXygen, although
> the catalog seems to work fine.
> 
> E [Xerces] cvc-complex-type.2.4.a: Invalid content was found starting
> with element 'datasetFmrc'. One of
> '{"http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":documentation,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":metadata,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":property,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":contributor,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":creator,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":date,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":keyword,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":project,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":publisher,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":geospatialCoverage,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":timeCoverage,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":variables,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":dataType,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":dataFormat,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":serviceName,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":authority,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":dataSize,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":access,
> "http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2":netcdf,
> "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0":dataset}'
> is expected.
> 
> E [Xerces] cvc-complex-type.2.4.a: Invalid content was found starting
> with element 'variable'. One of
> '{"http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2":scan,
> "http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2":scanFmrc}' is
> expected.
> 
> Is this because I'm not specifying something correctly in the
> namespace stuff?
> 
> My catalog looks like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0
> http://www.unidata.ucar.edu/schemas/thredds/InvCatalog.1.0.1.xsd";
> xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
> xmlns:xlink="http://www.w3.org/1999/xlink";
> name="FMRC Test">
> 
> <service name="curvilinear_services" serviceType="Compound" base="">
> <service name="ncdods" serviceType="OPENDAP" base="/thredds/dodsC/"/>
> </service>
> 
> <dataset name="UMAINE:GomPOM">
> <metadata inherited="true">
> <serviceName>curvilinear_services</serviceName>
> </metadata>
> 
> <datasetFmrc name="FMRC test" path="gomoos/fmrc" >
> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";>
> 
> <aggregation dimName="runtime"
> type="forecastModelRunCollection" recheckEvery="10min">
> <scan location="c:/RPS/cf/gomoos/2009/" suffix=".cdf"
> dateFormatMark="gomoos.#yyyyMMdd"
> olderThan="5 min"/>
> 
> <variable name="time">
> <attribute name="units" type="String" value="days since
> 2006-11-02 00:00 UTC"/>
> </variable>
> 
> <variable name="elev">
> <attribute name="coordinates" type="String" value="x y"/>
> <attribute name="_FillValue" type="short" value="16608"/>
> </variable>
> <variable name="depth">
> <attribute name="coordinates" type="String" value="x y"/>
> </variable>
> <variable name="temp">
> <attribute name="coordinates" type="String" value="x y zpos"/>
> <attribute name="_FillValue" type="short" value="-25184"/>
> </variable>
> 
> <variable name="salt">
> <attribute name="coordinates" type="String" value="x y zpos"/>
> <attribute name="_FillValue" type="short" value="-26128"/>
> <attribute name="units" type="String" value="0.001"/>
> </variable>
> <variable name="zpos">
> <attribute name="standard_name" type="String"
> value="ocean_sigma_coordinate"/>
> <attribute name="formula_terms" type="String"
> value="sigma: zpos eta: elev depth: depth"/>
> <attribute name="positive" type="String" value="up"/>
> <attribute name="units" type="String" value="1"/>
> <attribute name="axis" type="String" value="Z"/>
> <values> 0 -0.002 -0.004 -0.008 -0.016 -0.024 -0.032 -0.04
> -0.06 -0.08 -0.10 -0.12 -0.14
> -0.16 -0.18 -0.2 -0.3 -0.4 -0.5 -0.6 -0.8 -1.0 </values>
> </variable>
> <attribute name="Conventions" type="String" value="CF-1.0"/>
> </aggregation>
> </netcdf>
> </datasetFmrc>
> </dataset>
> </catalog>


Ticket Details
===================
Ticket ID: NHF-285067
Department: Support THREDDS
Priority: High
Status: Open