TEI xsl-fo (footnotes and table captions)

Here should go questions about transforming XML with XSLT and FOP.
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

TEI xsl-fo (footnotes and table captions)

Post by Welblaud »

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.

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

Captions
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:
ftp://46.28.111.241/tei_lite_FO_test.pdf

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>
<row role="label">
<cell/>
<cell>1980–85</cell>
<cell>1990–95</cell>...
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>
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

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

Post by alex_jitianu »

Hello,

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,
Alex
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

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

Post by Welblaud »

Thank you, I will definitely try that!
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

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

Post by Welblaud »

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:
Post Reply