<div dir="ltr"><div>Hi all,</div><div><br></div><div>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:</div><div><br></div><div># download the metadata record</div><div>$ wget -O record.xml "<a href="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">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</a>"</div><div><br></div><div># create local xsd schema file</div><div>$ cat << EOF > schema.xsd</div><div><div><xs:schema xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" targetNamespace="<a href="http://www.isotc211.org/2005/srv">http://www.isotc211.org/2005/srv</a>" elementFormDefault="qualified" version="0.1"></div><div><xs:include schemaLocation="<a href="http://schemas.opengis.net/iso/19139/20060504/srv/serviceMetadata.xsd">http://schemas.opengis.net/iso/19139/20060504/srv/serviceMetadata.xsd</a>"/></div><div></xs:schema></div></div><div>EOF</div><div><br></div><div># finally test the schema</div><div>$ xmllint --schema schema.xsd record.xml  --noout<br></div><div><br></div><div>result:</div><div><br></div><div><div><a href="http://schemas.opengis.net/iso/19139/20060504/gml/coordinateOperations.xsd:48">http://schemas.opengis.net/iso/19139/20060504/gml/coordinateOperations.xsd:48</a>: element element: Schemas parser error : Element '{<a href="http://www.w3.org/2001/XMLSchema}element">http://www.w3.org/2001/XMLSchema}element</a>', attribute 'ref': The QName value '{<a href="http://www.isotc211.org/2005/gmd}AbstractDQ_PositionalAccuracy">http://www.isotc211.org/2005/gmd}AbstractDQ_PositionalAccuracy</a>' does not resolve to a(n) element declaration.</div><div>WXS schema schema.xsd failed to compile</div></div><div><br></div><div>Any hint? Do I use proper version of XSD?</div><div><br></div><div>Thanks for hint</div><div><br></div><div>Jachym</div><div><br></div></div>