Menu

#604 ODD PDF transformation creates incomplete highlights in the PDF output

AMBER
closed
None
5(default)
2013-11-01
2013-10-14
No

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>

Discussion

  • Sorin Ristache

    Sorin Ristache - 2013-10-14

    I attach the ODD source file.

     
  • Sorin Ristache

    Sorin Ristache - 2013-10-14

    I attach also the PDF result.

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-10-14

    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?

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-10-14

    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....

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-10-14
    • assigned_to: Sebastian Rahtz
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-11-01
    • status: open --> closed
     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-11-01

    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.

     
  • Martin Holmes

    Martin Holmes - 2013-11-01

    I could test with XEP to see if it's really a bug in FOP. Worth doing?

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-11-01

    if you have a copy of XEP, sure.

     
  • Martin Holmes

    Martin Holmes - 2013-11-01

    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.

     
  • Sebastian Rahtz

    Sebastian Rahtz - 2013-11-01

    i think you're using old stylesheets, Martin, possibly from SF instead of Github. directory "common2/" doesn't exist these days

     
  • Martin Holmes

    Martin Holmes - 2013-11-01

    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).