Table header row control
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 22
- Joined: Sun Aug 14, 2011 5:21 am
Table header row control
Post by Bob.Conlin »
Using the default DITA xml transformation to PDF I get tables ok but I need to change the style sheet (or something) for a couple of formatting issues.
1) How do I get rows not to break over page breaks?
2) How do I get table header row entries to render vertically?
3) How do I change the header row background color to change from yellow to Grey?
4) How do I get the header row to repeat on every page when a table breaks across pages? I'm going to be creating a lot of tables in my documents so this is very important.
I'm using Oxygen DITA files. I'm using the trial edition until the PO comes through. Thanks for the help.
1) How do I get rows not to break over page breaks?
2) How do I get table header row entries to render vertically?
3) How do I change the header row background color to change from yellow to Grey?
4) How do I get the header row to repeat on every page when a table breaks across pages? I'm going to be creating a lot of tables in my documents so this is very important.
I'm using Oxygen DITA files. I'm using the trial edition until the PO comes through. Thanks for the help.
Re: Table header row control
Hi Bob,
In order to publish DITA Maps to various output sources Oxygen uses the open source DITA Open Toolkit (DITA OT) which is bundled with each Oxygen installation in the folder:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT
Basically the DITA OT applies a variety of ANT build files and XSLT stylesheets to obtain an XSL-FO file from which, by applying a FO processor (like Apache FOP which is the default used in Oxygen) obtains the final PDF file.
There are a number of tutorials describing customizations for creating PDF using the DITA Open Toolkit like this one:
http://www.scriptorium.com/whitepapers/ ... tweaks.pdf
The DITA Users List is also a good place to ask customization questions.
I will try to answer some of your questions below:
there is an attribute set for table rows:
which can be modified to add the following attribute to the generated FO file:
and search in it for "antiquewhite" you will see that some of these colors can be customized by changing values in the file.
Regards,
Radu
In order to publish DITA Maps to various output sources Oxygen uses the open source DITA Open Toolkit (DITA OT) which is bundled with each Oxygen installation in the folder:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT
Basically the DITA OT applies a variety of ANT build files and XSLT stylesheets to obtain an XSL-FO file from which, by applying a FO processor (like Apache FOP which is the default used in Oxygen) obtains the final PDF file.
There are a number of tutorials describing customizations for creating PDF using the DITA Open Toolkit like this one:
http://www.scriptorium.com/whitepapers/ ... tweaks.pdf
The DITA Users List is also a good place to ask customization questions.
I will try to answer some of your questions below:
In the XSLT stylesheet:1) How do I get rows not to break over page breaks?
Code: Select all
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/cfg/fo/attrs/tables-attr.xsl
Code: Select all
<xsl:attribute-set name="tbody.row">
<!--Table body row-->
</xsl:attribute-set>
Code: Select all
<xsl:attribute-set name="tbody.row">
<!--Table body row-->
<xsl:attribute name="keep-together.within-page">always</xsl:attribute>
</xsl:attribute-set>
There is an attribute called reference-orientation in the XSL-FO specification which should control text rotation, but it probably implies more extensive changes in the stylesheets and it is possible that only the commercial FO processors (like XEP or Antenna House) support it. Maybe you should also ask around on the DITA Users List.2) How do I get table header row entries to render vertically?
If you open the following XSLT:3) How do I change the header row background color to change from yellow to Grey?
Code: Select all
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/cfg/fo/attrs/tables-attr.xsl
From what I've tested this is the default behavior. Maybe you can give me some screenshots, you can also contact us using the "support at oxygenxml dot com" email address.4) How do I get the header row to repeat on every page when a table breaks across pages? I'm going to be creating a lot of tables in my documents so this is very important.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 22
- Joined: Sun Aug 14, 2011 5:21 am
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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