Opened 13 years ago
Closed 13 years ago
#756 closed defect (fixed)
Valid metadata fails to import if it has spurious namespace declaration
Reported by: | heikki | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.7.0 |
Component: | General | Version: | |
Keywords: | import metadata | Cc: |
Description
The attached file, which is a valid ISO19139 metadata, cannot be imported in GN trunk. You get the message "Root Element Not Set".
If you remove the csw namespace declaration from the root element, the problem disappears.
GeoNetwork should be able to import all valid ISO19139 metadata.
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | gemeentegelderlandiso19139.xml added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Change base iso19139 schema autodetect rule to use the root element gmd:MD_Metadata and thus trap this record as belonging to iso19139
Schema autodetect rules are evaluated in order of how specific they are:
It's appropriate that base schemas like iso19139 use a root element rule and profiles of iso19139 use either element/attribute search if they don't change the root element or their own separate root element rule if they do change the root element