Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cswCapabilities-INSPIRE.xml not validating #109

Closed
gcampanile opened this issue Sep 8, 2014 · 1 comment
Closed

cswCapabilities-INSPIRE.xml not validating #109

gcampanile opened this issue Sep 8, 2014 · 1 comment

Comments

@gcampanile
Copy link
Contributor

Validating the cswCapabilities-INSPIRE.xml file with Altova's XMLSpy, several errors are fired. Some of them are harmless, but if a CSW client makes a strict validation then it can refuse the connection to geoportal.

  1. {The xml:lang attribute is not valide (used for example at lines 32, 41 etc.).} <----- Ignore this: the response XMl is filtered based on the language parameter
  2. The TemporalReference sequence of dates is not correct (lines 289-291)
...
        <inspire_common:DateOfPublication>2014-08-01</inspire_common:DateOfPublication>
        <inspire_common:DateOfLastRevision>2014-08-01</inspire_common:DateOfLastRevision>
        <inspire_common:DateOfCreation>2014-08-01</inspire_common:DateOfCreation>
...

should be:

...
        <inspire_common:DateOfCreation>2014-08-01</inspire_common:DateOfCreation>
        <inspire_common:DateOfLastRevision>2014-08-01</inspire_common:DateOfLastRevision>
        <inspire_common:DateOfPublication>2014-08-01</inspire_common:DateOfPublication>
...
  1. Duplicate StartingDate tag at line 297:
          <inspire_common:IntervalOfDates>
            <inspire_common:StartingDate>2014-08-01</inspire_common:StartingDate>
            <inspire_common:StartingDate>2014-08-01</inspire_common:StartingDate>
            <inspire_common:EndDate>2014-08-01</inspire_common:EndDate>
  1. All dates marked with the temporary string YYYY-MM-DD are not valid. I think it's useful to change them to a fake but valid date, eg. 1900-01-01.

Gianni

@zguo
Copy link
Collaborator

zguo commented Sep 10, 2014

Thanks, we will update it for inspire (#2 already in dev branch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants