OGC KML の XML Schema を検証すると異次元のエラーが
OGC KML という名前を手に入れた Google の KML。OGC でホストされているスキーマを Sun MSV で検証してみました。
$ java -jar msv-20080213/msv.jar http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd スキーマを読み込んでいます... 警告が見つかりました。-warningオプションを使うと警告も表示できます 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 346:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 376:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 402:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 428:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 514:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 533:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 555:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 575:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 595:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 619:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 643:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 665:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 709:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 729:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 757:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 778:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 800:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 822:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 856:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 877:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 899:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 922:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 945:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 970:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 986:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1011:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1033:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1055:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1077:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1097:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1118:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1140:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1161:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1181:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1205:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1229:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1253:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1276:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1301:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1321:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1343:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1362:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1381:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1406:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1424:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1444:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1464:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1485:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1514:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1537:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1558:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1578:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd 未サポートの機能です: "omitting type attribute in <element> element with substitutionGroup attribute" 1599:50@http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd スキーマの読み込みに失敗しました
さすが Ajax を流行らせた Google だけあって(?),他人が使わない機能を積極的に使ってくる,ということでしょうか。OGC GML を検証したときとはまったく性質の異なるエラーが出てきました。