Skip to content
Go to file
Cannot retrieve contributors at this time
32 lines (20 sloc) 1.81 KB

Metadata contact

Purpose: At least one point of contact must be given.


Test method

The test first checks if a contact element is given. It then performs the following checks for every element at gmd:contact:

  • There must not be an empty characterstring at ./gmd:organisationName
  • There must not be an empty characterstring at ./gmd:contactInfo/*/gmd:address/*/gmd:electronicMailAddress. Check electronicMailAddress with the regular expresion ^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$. If the string does not match the regular expression, the test fails (note: regex built for case insensitive match).


Test type: Automated


In the ETS, an updated regex '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$' has been used (regex are case sensitive and special characters like "." and "+" have to be escaped).

##Contextual XPath references

The namespace prefixes used as described in

Abbreviation XPath expression (relative to gmd:MD_Metadata)
Contact ./gmd:contact/gmd:CI_ResponsibleParty
Organisation Name ./gmd:organisationName
Electronic Mail Address ./gmd:contactInfo//gmd:address//gmd:electronicMailAddress
You can’t perform that action at this time.