[pycsw-devel] gmd schema 2005 broken? Schemas parser error
Jachym Cepicky
jachym.cepicky at gmail.com
Fri Oct 2 14:12:14 PDT 2015
Hi all,
I would like to validate some records from our PyCSW instance, but it
seems, that the schemas are broken ? I test on Linux command line and
python lxml with the same result:
# download the metadata record
$ wget -O record.xml "
http://geosense.cz/cgi-bin/csw.py?service=CSW&version=2.0.2&Request=GetRecordById&id=CZ-29002567-srv-jedinecny_nazev_sluzby&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
"
# create local xsd schema file
$ cat << EOF > schema.xsd
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="
http://www.isotc211.org/2005/srv" elementFormDefault="qualified"
version="0.1">
<xs:include schemaLocation="
http://schemas.opengis.net/iso/19139/20060504/srv/serviceMetadata.xsd"/>
</xs:schema>
EOF
# finally test the schema
$ xmllint --schema schema.xsd record.xml --noout
result:
http://schemas.opengis.net/iso/19139/20060504/gml/coordinateOperations.xsd:48:
element element: Schemas parser error : Element '{
http://www.w3.org/2001/XMLSchema}element', attribute 'ref': The QName value
'{http://www.isotc211.org/2005/gmd}AbstractDQ_PositionalAccuracy' does not
resolve to a(n) element declaration.
WXS schema schema.xsd failed to compile
Any hint? Do I use proper version of XSD?
Thanks for hint
Jachym
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pycsw-devel/attachments/20151002/c32bf135/attachment.html>
More information about the pycsw-devel
mailing list