TEI xsl-fo (footnotes and table captions)

Here should go questions about transforming XML with XSLT and FOP.
Posts: 14

TEI xsl-fo (footnotes and table captions)

Tue Nov 24, 2015 4:14 pm

I am intensively testing transformations from TEI documents into PDF (needed for editorship). I have no clue where could be the problem in case of footnotes and captions.

The code is valid. I am using the latest version of TEIC/Stylesheet repository. Testing with Oxygen Author 16.1 (Win 7) and Oxygen Author 17 (Linux Mint). Besides, I have tried the same via XeLaTeX.

1) Oxygens > The number and the body of footnote are separated in two lines.
2) XeLaTeX > Footnotes are OK.

1) Oxygens > The caption is automatically generated but the rest of is (it should be taken from the "head" element) is missing.
2) XeLaTeX > The caption is properly generated but it is not possible to customize justification and alignment.

I know well it is not possible to port XSL sheets from one system to another one smoothly (mean between Oxygen and LaTeX based system). I am just wondering where could be the problem. Guys from TEIC claim stylesheets were tested with PassiveTeX only. Great but Oxygen apparently uses the same set of them.

I am not an XSLT guru, I would be very happy if anyone could help me. However, I am quite sure there is no bug in XSLT, maybe it is something different.

Here is the result:

Sample code for tables:

Code: Select all

 <table rend="frame" cols="10" rows="20">
          <head>Situace a výhled úhrnné plodnosti v letech 1980–2065 ve vybraných zemích OECD</head>
          <row role="header">
            <cell cols="10">header</cell>
          <row role="label">

Sample code for footnotes:

Code: Select all

<p>K intenzivnějším ... a MOV<note place="foot" xml:id="ftn4" n="4"><p> http://www.olympic.org/Documents/Reports/EN/en_report_1084.pdf</p></note> (Mezinárodní olympijský ... 2000).</p>
Posts: 604

Re: TEI xsl-fo (footnotes and table captions)

Wed Nov 25, 2015 12:55 pm


The TEI publishing support in Oxygen is based on the official TEI XSLTs. Perhaps you can try asking this question on the official TEI mailing list: TEI-L@LISTSERV.BROWN.EDU . Chances are someone from the TEI community will know more about the PDF transformation.

Best regards,
Posts: 14

Re: TEI xsl-fo (footnotes and table captions)

Thu Nov 26, 2015 4:01 pm

Thank you, I will definitely try that!
Posts: 14

Re: TEI xsl-fo (footnotes and table captions)

Thu Nov 26, 2015 4:28 pm

In the case of footnotes, Oxygen and its output is very much sensitive to the style:

Code: Select all

<note place="bottom">XYZ</note>
works like a charm;

Code: Select all

<note place="bottom"><p>XYZ</p></note>
is the problem—it is shifted to another line like a new paragraphs.

Conclusion—when dealing with footnotes, try to experiment with nested paragraphs. :idea:

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 3 guests