Page 1 of 1

Error when trying to generate pdf

Posted: Tue Dec 15, 2015 11:07 pm
by xml_writer85
Hi folks,

Hoping someone can help me here. As part of an exercise I am trying to generate a pdf from my file in Oxygen XML Editor.

When I apply the transformation to create a DITA map PDF it fails and generates the error:
Severity: error Description: The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table.
Start location: 123:0
- piece in bold in codeblock is where the error is showing up.
- I thought it was asking for me to enter in an alignment selection for the attrib. so I put in left in all the instances, republished but all the errors appear again and it fails? Really frustrating and can't figure out how to solve this. Hope someone can help with this... driving me nuts! :evil:

Thanks!



[Codebox=] <fo:table-cell text-align="from-table-column()"><fo:block end-indent="3pt" space-after="3pt" space-after.conditionality="retain" space-before="3pt" space-before.conditionality="retain" start-indent="3pt">
Link dependency and management<fo:list-block id="unique_1_Connect_42_ul_kcg_w2j_b5" provisional-distance-between-starts="5mm" provisional-label-separation="1mm" space-after="0.6em" space-before="0.6em">
<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>hierarchical links</fo:block></fo:list-item-body></fo:list-item>
<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>cross references</fo:block></fo:list-item-body></fo:list-item>
<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>link to non-DITA resources</fo:block></fo:list-item-body></fo:list-item>
</fo:list-block></fo:block></fo:table-cell>
<fo:table-cell text-align="from-table-column()"><fo:block end-indent="3pt" space-after="3pt" space-after.conditionality="retain" space-before="3pt" space-before.conditionality="retain" start-indent="3pt">
<fo:list-block provisional-distance-between-starts="5mm" provisional-label-separation="1mm" space-after="0.6em" space-before="0.6em">
<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>
Links to non-DITA resources are demonstrated in the [/Codebox]

Re: Error when trying to generate pdf

Posted: Wed Dec 16, 2015 9:40 am
by Radu
Hi,

What version of Oxygen are you using?
Are you using Oxygen's default transformation scenarios to generate the PDF?
Are you using the DITA Open Toolkit publishing engine which comes with Oxygen or an external one?

This looks like a problem in which the number of cells on a certain table row is higher than the number of column specifications set on the table.
For example in this case:

Code: Select all

<tgroup cols="1">
<colspec colname="c1" colnum="1" colwidth="1.0*" align="right"/>
<thead>
<row>
<entry>1</entry>
<entry>2</entry>
</row>
</thead>
<tbody>
<row>
<entry>3</entry>
<entry>4</entry>
</row>
</tbody>
</tgroup>
the table declares to have a single column and has only one column specification defined but each row has two cells.

Ideally you would try to find that particular table which has a problem. Opening the XSL-FO file and going to the line 123 specified in the error should locate the XSL-FO table which resulted from your original DITA CALS table. Then based on the XSL-FO table contents you should be able to find the original DITA table.

We have plans to add table structure validation in Oxygen 18.0, so in cases like yours you will get validation errors when editing the table in Oxygen and you will be able to fix it before publishing it.

Regards,
Radu

Re: Error when trying to generate pdf

Posted: Wed Dec 16, 2015 1:00 pm
by xml_writer85
Hi Radu,

I am using Oxygen XML editor 16.
Yes I am using the default transformation scenario - DITA Map PDF and I am using the publishing engine that comes with Oxygen.

I'm not sure I understand what specifically I must change in the file - I expanded the code where the error is - see below:

Must I change something in here? Apologies for the dumb questions but I'm a newbie at XML so I'm far from proficient with it.

Thank you for the help though, much appreciated.

Code: Select all

<fo:table-cell text-align="from-table-column()"><fo:block end-indent="3pt" space-after="3pt" space-after.conditionality="retain" space-before="3pt" space-before.conditionality="retain" start-indent="3pt"> Concept topics - containing the following:<fo:list-block id="unique_1_Connect_42_ul_kmp_fdj_b5" provisional-distance-between-starts="5mm" provisional-label-separation="1mm" space-after="0.6em" space-before="0.6em">

<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>sections</fo:block></fo:list-item-body></fo:list-item>

<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>short description</fo:block></fo:list-item-body></fo:list-item>

<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>image inserted</fo:block></fo:list-item-body></fo:list-item>

<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>unordered list</fo:block></fo:list-item-body></fo:list-item>

<fo:list-item space-after="1.5pt" space-before="1.5pt"><fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always"><fo:block text-align="start"><fo:inline/>•</fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block>index entries</fo:block></fo:list-item-body></fo:list-item>
</fo:list-block></fo:block></fo:table-cell>

Re: Error when trying to generate pdf

Posted: Wed Dec 16, 2015 1:39 pm
by Radu
Hi,

The problem is probably in your original DITA content, so you need to locate the DITA table which has the problem and look at its structure, see if the number of cells on each row is the same with the number of column specifications.
From what it seems the DITA table contains a cell which contains inside a list with items containing text like short description and image inserted. So maybe this will help you identify it.

Regards,
Radu