fatty- / daisy-pipeline

Automatically exported from code.google.com/p/daisy-pipeline
0 stars 0 forks source link

dtbook-to-zedai: Adding dc:Type to the DTBook makes the conversion fail #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Modify the sample book (hauy_valid.xml) by adding this to the head: <meta 
name="dc:Type" content="" />
2. Run dtbook-to-zedai

Validating the DTBook with DTBook Validator does not output any errors in the 
validation report...

What is the expected output? What do you see instead?

2013-06-19 08:59:24,936 [DEBUG] org.daisy.pipeline.push.Poster - Status changed 
43c837a3-a130-4d24-b618-3e19c5cfd4f1->RUNNING
2013-06-19 08:59:24,940 [INFO ] o.d.p.persistence.jobs.PersistentJob - Changing 
Status:RUNNING
2013-06-19 08:59:24,942 [DEBUG] o.d.p.persistence.jobs.PersistentJob - Updating 
object
2013-06-19 08:59:24,943 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]
2013-06-19 08:59:24,947 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]
2013-06-19 08:59:24,948 [DEBUG] o.d.p.p.jobs.PersistentJobContext - Post 
loading jobcontext
2013-06-19 08:59:24,949 [DEBUG] o.d.pipeline.job.JobContextFactory - 
configuring object 
org.daisy.pipeline.persistence.jobs.PersistentJobContext@4491adc6
2013-06-19 08:59:24,952 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]
2013-06-19 08:59:24,976 [DEBUG] o.d.c.x.c.DynamicXProcConfigurationFactory - 
Reading Calabash configuration from 
/home/itadmin/daisy-pipeline/etc/config-calabash.xml
2013-06-19 08:59:26,224 [DEBUG] o.d.c.x.c.DynamicXProcConfigurationFactory - 
Reading Calabash configuration from 
/home/itadmin/daisy-pipeline/etc/config-calabash.xml
2013-06-19 08:59:30,533 [DEBUG] o.d.c.xproc.calabash.steps.Message - Running 
{http://xmlcalabash.com/ns/extensions}message !1.29
2013-06-19 08:59:30,534 [INFO ] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:154:17:Message:ZedAI file name: 
zedai.xml
2013-06-19 08:59:30,539 [DEBUG] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:154:17:Message step !1.29 read 
bundle://62.0:1/xml/xproc/fileset-create.xpl
2013-06-19 08:59:30,540 [DEBUG] o.d.c.xproc.calabash.steps.Message - Running 
{http://xmlcalabash.com/ns/extensions}message !1.30
2013-06-19 08:59:30,540 [INFO ] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:157:17:Message:MODS file name: 
zedai-mods.xml
2013-06-19 08:59:30,544 [DEBUG] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:157:17:Message step !1.30 read 
bundle://62.0:1/xml/xproc/fileset-create.xpl
2013-06-19 08:59:30,545 [DEBUG] o.d.c.xproc.calabash.steps.Message - Running 
{http://xmlcalabash.com/ns/extensions}message !1.31
2013-06-19 08:59:30,545 [INFO ] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:160:17:Message:CSS file name: 
zedai-css.css
2013-06-19 08:59:30,549 [DEBUG] o.d.c.xproc.calabash.steps.Message - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:160:17:Message step !1.31 read 
bundle://62.0:1/xml/xproc/fileset-create.xpl
2013-06-19 08:59:30,629 [DEBUG] o.d.c.xproc.calabash.steps.Message - Running 
{http://xmlcalabash.com/ns/extensions}message !1.9
2013-06-19 08:59:30,633 [INFO ] o.d.c.xproc.calabash.steps.Message - 
bundle://66.0:1/xml/upgrade-dtbook/upgrade-dtbook.xpl:55:17:Message:Input 
document version: 2005-2
2013-06-19 08:59:30,646 [DEBUG] o.d.c.xproc.calabash.steps.Message - 
bundle://66.0:1/xml/upgrade-dtbook/upgrade-dtbook.xpl:55:17:Message step !1.9 
read 
file:/home/itadmin/daisy-pipeline/data/43c837a3-a130-4d24-b618-3e19c5cfd4f1/cont
ext/hauy_valid.xml
2013-06-19 08:59:31,012 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:25:35:Renaming certain elements 
to span with @role
2013-06-19 08:59:31,027 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:25:35:--Done
2013-06-19 08:59:31,035 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:35:36:Renaming code and kbd 
elements to reflect block or phrase variants.
2013-06-19 08:59:31,044 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:35:36:--Done
2013-06-19 08:59:31,051 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:45:38:Renaming annotation 
elements to identify block or phrase variants.
2013-06-19 08:59:31,061 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:45:38:--Done
2013-06-19 08:59:31,071 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:55:39:Convert br to lines
2013-06-19 08:59:31,091 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:55:39:--Done
2013-06-19 08:59:31,105 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:65:45:Grouping contents of a 
definition list into items
2013-06-19 08:59:31,127 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:65:45:--Done
2013-06-19 08:59:31,152 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:76:37:Move out inlined image 
groups
2013-06-19 08:59:31,904 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:76:37:--Done
2013-06-19 08:59:31,917 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:87:33:Move out inlined lists
2013-06-19 08:59:32,644 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:87:33:--Done
2013-06-19 08:59:32,665 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:98:36:Move out inlined definition 
lists
2013-06-19 08:59:33,370 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:98:36:--Done
2013-06-19 08:59:33,385 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:109:37:Move out inlined prodnotes
2013-06-19 08:59:34,039 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:109:37:--Done
2013-06-19 08:59:34,052 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:120:32:Move out inlined divs
2013-06-19 08:59:34,764 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:120:32:--Done
2013-06-19 08:59:34,777 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:131:33:Move out inlined poems
2013-06-19 08:59:35,474 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:131:33:--Done
2013-06-19 08:59:35,485 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:142:38:Move out inlined linegroups
2013-06-19 08:59:36,005 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:142:38:--Done
2013-06-19 08:59:36,017 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:153:34:Move out inlined tables
2013-06-19 08:59:36,585 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:153:34:--Done
2013-06-19 08:59:36,596 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:164:36:Move out inlined sidebars
2013-06-19 08:59:37,142 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:164:36:--Done
2013-06-19 08:59:37,155 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:175:33:Move out inlined notes
2013-06-19 08:59:37,682 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:175:33:--Done
2013-06-19 08:59:37,696 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:186:37:Move out inlined epigraphs
2013-06-19 08:59:38,256 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:186:37:--Done
2013-06-19 08:59:38,267 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:197:45:Move out inlined 
annotation blocks
2013-06-19 08:59:38,783 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:197:45:--Done
2013-06-19 08:59:38,794 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:208:33:Move out inlined code 
blocks
2013-06-19 08:59:39,367 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:208:33:--Done
2013-06-19 08:59:39,377 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:219:43:Normalize mixed 
block/inline content
2013-06-19 08:59:39,390 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:219:43:--Done
2013-06-19 08:59:39,397 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed 
section/block content
2013-06-19 08:59:39,401 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,405 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,408 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,412 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,416 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,419 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,422 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,426 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,430 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,433 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,436 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,440 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,445 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,448 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,452 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,455 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level3
2013-06-19 08:59:39,459 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level3
2013-06-19 08:59:39,462 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level3
2013-06-19 08:59:39,466 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level3
2013-06-19 08:59:39,470 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level3
2013-06-19 08:59:39,475 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,479 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,482 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,486 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,489 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level1
2013-06-19 08:59:39,493 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,497 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,501 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,504 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:Normalize mixed section 
and block content model for level2
2013-06-19 08:59:39,508 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:230:44:--Done
2013-06-19 08:59:39,570 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:241:39:Translate to ZedAI
2013-06-19 08:59:39,618 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:241:39:--Done
2013-06-19 08:59:39,626 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook2005-3-to-zedai.xpl:251:48:Annotations without @ref 
will be attached to their nearest section parent
            element.
2013-06-19 08:59:39,639 [INFO ] com.xmlcalabash.runtime.XAtomicStep - 
bundle://25.0:1/xml/dtbook-to-zedai.convert.xpl:305:33:Generating CSS
2013-06-19 08:59:39,749 [ERROR] com.xmlcalabash - err:XC0053:XProc error 
err:XC0053
2013-06-19 08:59:39,754 [ERROR] com.xmlcalabash - err:XC0053:XProc error 
err:XC0053
2013-06-19 08:59:39,757 [ERROR] com.xmlcalabash - err:XC0053:XProc error 
err:XC0053
2013-06-19 08:59:39,762 [ERROR] org.daisy.pipeline.job.Job - job finished with 
error state
com.xmlcalabash.core.XProcException: XProc error err:XC0053
    at com.xmlcalabash.library.ValidateWithXSD.validateWithXerces(Unknown Source) ~[na:na]
    at com.xmlcalabash.library.ValidateWithXSD.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XAtomicStep.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipelineCall.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipelineCall.run(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source) ~[na:na]
    at com.xmlcalabash.runtime.XPipeline.run(Unknown Source) ~[na:na]
    at org.daisy.common.xproc.calabash.CalabashXProcPipeline.run(CalabashXProcPipeline.java:239) ~[na:na]
    at org.daisy.pipeline.job.Job.run(Job.java:161) ~[na:na]
    at org.daisy.pipeline.job.DefaultJobExecutionService$1.run(DefaultJobExecutionService.java:65) ~[na:na]
    at java.lang.Thread.run(Thread.java:679) ~[na:1.6.0_27]
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid 
content was found starting with element 'extension'. One of 
'{"http://www.loc.gov/mods/v3":titleInfo, "http://www.loc.gov/mods/v3":name, 
"http://www.loc.gov/mods/v3":typeOfResource, 
"http://www.loc.gov/mods/v3":genre, "http://www.loc.gov/mods/v3":originInfo, 
"http://www.loc.gov/mods/v3":language, 
"http://www.loc.gov/mods/v3":physicalDescription, 
"http://www.loc.gov/mods/v3":abstract, 
"http://www.loc.gov/mods/v3":tableOfContents, 
"http://www.loc.gov/mods/v3":targetAudience, "http://www.loc.gov/mods/v3":note, 
"http://www.loc.gov/mods/v3":subject, 
"http://www.loc.gov/mods/v3":classification, 
"http://www.loc.gov/mods/v3":relatedItem, 
"http://www.loc.gov/mods/v3":identifier, "http://www.loc.gov/mods/v3":location, 
"http://www.loc.gov/mods/v3":accessCondition, 
"http://www.loc.gov/mods/v3":part, "http://www.loc.gov/mods/v3":extension, 
"http://www.loc.gov/mods/v3":recordInfo}' is expected.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:387) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:421) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3186) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1810) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:709) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:564) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.validate(ValidatorHandlerImpl.java:712) ~[na:1.6.0_27]
    at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:101) ~[na:1.6.0_27]
    at javax.xml.validation.Validator.validate(Validator.java:124) ~[na:1.6.0_27]
    ... 15 common frames omitted
2013-06-19 08:59:39,764 [DEBUG] org.daisy.pipeline.push.Poster - Status changed 
43c837a3-a130-4d24-b618-3e19c5cfd4f1->ERROR
2013-06-19 08:59:39,765 [INFO ] o.d.p.persistence.jobs.PersistentJob - Changing 
Status:ERROR
2013-06-19 08:59:39,765 [DEBUG] o.d.p.persistence.jobs.PersistentJob - Updating 
object
2013-06-19 08:59:39,765 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]
2013-06-19 08:59:39,766 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]
2013-06-19 08:59:39,766 [DEBUG] o.d.p.p.jobs.PersistentJobContext - Post 
loading jobcontext
2013-06-19 08:59:39,767 [DEBUG] o.d.pipeline.job.JobContextFactory - 
configuring object 
org.daisy.pipeline.persistence.jobs.PersistentJobContext@486d6c53
2013-06-19 08:59:39,767 [DEBUG] o.d.p.p.jobs.PersistentJobContext - load script 
XProcScript[name=DTBook to ZedAI]

Original issue reported on code.google.com by josteinaj@gmail.com on 19 Jun 2013 at 1:20

GoogleCodeExporter commented 9 years ago
Right now, the only metadata that would raise an "empty!!" warning is dc:Title:
https://github.com/daisy-consortium/pipeline-scripts/blob/master/dtbook-validato
r/src/main/resources/xml/schema/sch/dtbook.mathml.sch#L43

We should definitely check for empty strings in all the required metadata. 
Should we also check optional metadata items (e.g. dc:Type)?

Original comment by marisa.d...@gmail.com on 19 Jun 2013 at 6:38

GoogleCodeExporter commented 9 years ago
I'm not at my computer now but I think it fails even when the content is
not empty.

I don't really care whether we check for empty strings or not in the
optional metadata (or at least idhaso). But if the DTBook validates in
dtbook-validator, then it should run successfully through dtbook-to-zedai.
Den 19. juni 2013 20:38 skrev <daisy-pipeline@googlecode.com> følgende:

Original comment by josteinaj@gmail.com on 19 Jun 2013 at 7:20

GoogleCodeExporter commented 9 years ago
Oh sorry, I misread the description. I will have a look at this - it should not 
be failing.

Original comment by marisa.d...@gmail.com on 19 Jun 2013 at 7:23

GoogleCodeExporter commented 9 years ago
The problem is that it causes invalid MODS metadata output. I'm looking into it 
now.

Original comment by marisa.d...@gmail.com on 7 Jul 2013 at 1:48

GoogleCodeExporter commented 9 years ago
Fixed
https://github.com/daisy-consortium/pipeline-scripts/commit/4cf58d20c5f4362a3cd3
785b1c3f2aca01fd9603

Original comment by marisa.d...@gmail.com on 7 Jul 2013 at 2:04

GoogleCodeExporter commented 9 years ago
Actually, this is what really fixed it:
https://github.com/daisy-consortium/pipeline-modules-common/commit/664d8a2f4e9bf
6882bd22227c2730952527ce109

Original comment by marisa.d...@gmail.com on 7 Jul 2013 at 2:06

GoogleCodeExporter commented 9 years ago
Just tested with the books I had issues with. It works now. Thanks :).

Original comment by josteinaj@gmail.com on 9 Jul 2013 at 1:21