Problem generating pdf due to table error.
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Tue Dec 15, 2015 10:52 pm
Problem generating pdf due to table error.
Post by xml_writer85 »
Hi folks,
As part of a project I am trying to generate a pdf from my file in XML editor. The transformation scenario is to generate a DITA Map PDF.
It generates the Webhelp fine, some minor issues but nothing major to prevent is displaying. However the pdf will not generate and it throws up the following error: cvc-attribute.3: The value 'from-table-column()' of attribute 'text-align' on element 'fo:table-cell' is not valid with respect to its type, '#AnonType_text-alignline-related-properties'.
The error section occurs numerous times and is highlighted in bold in the following codeblock. I tried inserting the attribute to align the text to the left. This seemed to clear up the error but when I tried to generate the pdf it would fail again and the errors would appear all over again.
Please offer any advice on how to get rid of this error - driving me nuts!
Thank you
[Codebox=]<fo:table-row>
<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>[/Codebox]
As part of a project I am trying to generate a pdf from my file in XML editor. The transformation scenario is to generate a DITA Map PDF.
It generates the Webhelp fine, some minor issues but nothing major to prevent is displaying. However the pdf will not generate and it throws up the following error: cvc-attribute.3: The value 'from-table-column()' of attribute 'text-align' on element 'fo:table-cell' is not valid with respect to its type, '#AnonType_text-alignline-related-properties'.
The error section occurs numerous times and is highlighted in bold in the following codeblock. I tried inserting the attribute to align the text to the left. This seemed to clear up the error but when I tried to generate the pdf it would fail again and the errors would appear all over again.
Please offer any advice on how to get rid of this error - driving me nuts!

Thank you
[Codebox=]<fo:table-row>
<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>[/Codebox]
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problem generating pdf due to table error.
Hi,
It probably depends on the FO processor you are using to produce the PDF.
Are running the transformation from Oxygen? If so, by default Apache FOP 1.1 should be used and it handles such constructs without problems from what I tested.
If you are using an older Apache FOP processor with an external process, you should try to upgrade it to 1.1.
Regards,
Radu
It probably depends on the FO processor you are using to produce the PDF.
Are running the transformation from Oxygen? If so, by default Apache FOP 1.1 should be used and it handles such constructs without problems from what I tested.
If you are using an older Apache FOP processor with an external process, you should try to upgrade it to 1.1.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service