#509 TEI Manuscript to FO - invalid FO result

closed-fixed
5
2013-01-23
2013-01-23
No

Transforming a stripped-down TEI Manuscript to FO creates an invalid FO result:

ERROR - Exception
net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 1:-1)
at org.apache.fop.cli.InputHandlerFOP.transformTo(InputHandlerFOP.java:302)
at org.apache.fop.cli.InputHandlerFOP.renderTo(InputHandlerFOP.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 1:-1)
at net.sf.saxon.event.ContentHandlerProxy.handleSAXException(ContentHandlerProxy.java:544)

Example of TEI Manuscript document:

<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_ms.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
<p>Information about the source</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<listBibl>
<msDesc>
<msIdentifier>
<settlement>where is it</settlement>
<repository>repository name</repository>
<idno>identifier</idno>
</msIdentifier>
</msDesc>
</listBibl>
</body>
</text>
</TEI>

Discussion

  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-23

    I agree, this should produce something. I'll have to fix it

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-23
    • status: open --> open-accepted
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-23
    • status: open-accepted --> closed-fixed
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-01-23

    This is fixed for the next release of the stylesheets. valid,if inelegant, FO appears

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks