validate problem with includes itself recurs.

Help
Peter
2012-09-07
2012-10-08
  • Peter
    Peter
    2012-09-07

    Hello

    We use Saxon-EE to validate some citygml-files (validate against schema on
    http://schemas.opengis.net/citygml and
    http://schemas.opengis.net/gml)
    Some weeks ago, the OGC has changed some gml-schemas (http://www.opengeospati
    al.org/blog/1597).

    Since then we can’t do a validation with saxon-ee and get the warning “Warning
    at include…, gml.xsd includes itself recursively”
    At the end of the validation process, we get the message “No more warnings
    will be displayed” and we don’t get the contained error (line 13, syntax of
    date) of the file.

    What can we do to fix this?

    Thank you for your help.

    Pascal

     
  • Michael Kay
    Michael Kay
    2012-09-07

    Thanks for reporting it. I have logged the problem here:

    http://dev.saxonica.com/community/issues/1621

    and have committed a patch.

    A possible workaround is to run with your own ErrorListener - since the bug is
    in the standard error listener, you can override it with a version that fixes
    the bug. You can supply this using the option --errorListenerClass:classname
    where classname is the name of your implementation. I'm attaching the
    corrected code of the standard error listener, which you can simply rename.