Changeset 7957


Ignore:
Timestamp:
17/08/11 17:17:51 (8 years ago)
Author:
sdonegan
Message:

This seems to work..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery-Ingest/trunk/v4.3.0/ingestAutomation-upgrade/OAIBatch/schematronValidateScript.py

    r7956 r7957  
    1010schematron = sys.argv[1] 
    1111xmlToValidate = sys.argv[2] 
     12reportFile = sys.argv[3] 
    1213 
    1314#1. Transformn the sch file 
     
    3132svrlReportTxt = etree.parse('SvrlReportText.xslt') 
    3233svrlReportTxtTransform = etree.XSLT(svrlReportTxt) 
    33 textReport = svrlReportTxtTransform(rawReport) 
     34textReport = str(svrlReportTxtTransform(rawReport)) 
    3435 
    35 pdb.set_trace() 
     36#5. Write validation report 
     37outputFile = open(reportFile,"w") 
     38outputFile.write(textReport) 
     39outputFile.close() 
     40 
     41print "\nCompleted validation\n" 
     42 
Note: See TracChangeset for help on using the changeset viewer.