I transform the following TEI ODD customization file to PDF by chaining the stylesheets:
odds/odd2odd.xsl
odds/odd2lite.xsl
fo/fo.xsl
The PDF output highlights with a dark gray background the source code in the Datatype, Declaration and Example but in an incomplete way.
The TEI ODD file:
<body>
<schemaSpec ident="oddex1" start="TEI">
<moduleRef key="header"/>
<moduleRef key="core"/>
<moduleRef key="tei"/>
<moduleRef key="textstructure"/>
</schemaSpec>
</body>
I attach the ODD source file.
I attach also the PDF result.
Ugh. thats horrible :-{ I am amazed it works at all.
It happens because the content flows out outside the box. I am not sure what
to do about it?
The FO says something like
<table-cell padding="2pt" text-align="left"> <block> <block font-family="Courier" background-color="lightgray" color="black" white-space-treatment="preserve" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="no-wrap" text-indent="0em" hyphenate="false" start-indent="12pt" text-align="start" font-size="6pt" space-before.optimum="4pt" space-after.optimum="4pt"> element TEI { att.global.attributes, attribute version { data.version }?, ( teiHeader, ( ( model.resourceLike+, text? ) | text ) ) }</block> </block> </table-cell>
which seems technically correct. The FOP processor chooses the table cell widths, not me....
I am closing this ticket, because I really cant think of anything I can do about it. seems like a bug in FOP to me.
I could test with XEP to see if it's really a bug in FOP. Worth doing?
if you have a copy of XEP, sure.
The second transformation, with odd2lite.xsl, fails for me with
System ID: /media/Data/mholmes/Documents/tei/svnrepo/Stylesheets/release/p5/xml/tei/stylesheet/common2/functions.xsl
Severity: fatal
Description: XTTE0780: An empty sequence is not allowed as the result of function tei:i18n()
Start location: 507:0
URL: http://www.w3.org/TR/xslt20/#err-XTTE0780
No time to start debugging that, unfortunately. Let this sleeping hound lie.
i think you're using old stylesheets, Martin, possibly from SF instead of Github. directory "common2/" doesn't exist these days
You're right. The latest git stuff works. I've attached the results of transforming with XEP 4.5 (which is pretty old, but seems to work well).