Project

General

Profile

« Previous | Next » 

Revision 9583

Added by Jing Tao about 8 years ago

If a format id in the system metadata is registered in the xml_catalog table, we will use the schema location for the format id to validate the xml instance;
otherwise, we will use our previous way.

View differences:

EMLVersionsTransformer.java
159 159
             DBConnection dbconn = null;
160 160
             StringReader dtd = null;
161 161
             int serialNumber = -1;
162
             String formatId = null;
162 163
             try
163 164
             {
164 165
            	 dbconn = DBConnectionPool
165 166
                 .getDBConnection("EMLVersionsTransformer.handleSingleEML200Document");
166 167
                  serialNumber = dbconn.getCheckOutSerialNumber();
167 168
                  documentWrapper.write(dbconn, eml210Content, pub, dtd,
168
                          doAction, newId, owner, groups, null);
169
                          doAction, newId, owner, groups, null, formatId);
169 170
                  logMetacat.warn("Doc "+docidWithRev+" was transformed to eml210 with new id "+newId);
170 171
                  transformLog("Doc "+docidWithRev+" was transformed to eml210 with new id "+newId);
171 172
             }

Also available in: Unified diff