Metacat needs to be made namespace/schema aware
We have issues with the fact that Metacat can only do dtd validation and not
schema validation and it only recognized doctypes and not namespaces. This is a
problem because I want to be able to insert an EML2 file into metacat and tell
metacat that it is a "packagefile" but I can't do it because EML2 does not have
dtds and hence no doctypes. I think this bug needs to be given pretty high
priority since we want to have all of our systems integrated and working with
eml2 by early 2003.
#1 Updated by Jing Tao almost 17 years ago
The first thing we need to do is to update xerces from 1.4.3 to 2. This parser
can handle schema validation better. We can use the both Xerces parser and
EMLParser in eml module to validate eml xml2 documents.
EML namespace will be put into xml_catalog table and Metacat can recongize the
#2 Updated by Jing Tao over 16 years ago
Now metacat knowes namespace and when you insert a xml into metacat, the
namepace will be stored in xml_documents as doctype.
Metacat can do schema validation for both namespace and nonamespace. For
namespace validation, if the namespace is already registered in xml_catalog
table, metacat will ignored the schema location specified in xml file and uses
the value in the table(systemid). If a name space is not registered in
xml_catalog table, metacat will download the schema, store into metacat server
and register them in xml_catalog table.
The EMLParser class was revised and it can be used for metacat. For eml2
documents, metacat will validate it by both EMLparser and schema.