landscape page-sequence for images/tables

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

landscape page-sequence for images/tables

Mon Mar 20, 2017 2:46 pm

DITA: I have a image with (outputclass=landscape) in a Topic. I want to have this image on new page with new page-sequence (master-name="landscape"). However rest of the pdf is portrait. How to achieve this in DITA-OT 1.8.5. I am using Antenna House V6.2.

is it possible to end a page sequence within a topic, start a new one for rotated images or tables? I do not find a way to break the page-sequence inside the topic, by the time i match <xsl:template match="*[contains(@class,' topic/fig ')]">, I already have page-sequence which is coming from topic level.

thanks in advance
Radu
Posts: 5090

Re: landscape page-sequence for images/tables

Mon Mar 20, 2017 4:56 pm

Hi,

You should consider asking such customization-related questions on the Yahoo Groups DITA Users List. It's a large community and you may get access to more people who found solutions for similar problems.
From previous discussions creating separate page sequences for large rotated figures and titles is possible but it's hard work, I cannot offer you precise steps for this.
As an alternative In XSL-FO there is an attribute called reference-orientation which can be set on the fo:block corresponding to the figure/table with the value 90 in order to rotate the figure/table. So you could try to forcefully break the page before the figure and then set this attribute on the fo:block which is generated for the figure. From what I remember this will also work for the table but it will not properly work if the table spans multiple pages but I'm not sure, this needs to be tested. With DITA 1.3 tables have an @orient attribute which can be set to "land" and which basically sets the reference-orientation on the table block in the XSL-FO.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
DitaNewbie
Posts: 5

Re: landscape page-sequence for images/tables

Mon Mar 20, 2017 5:20 pm

Thanks Radu.

I will check in Dita user list.

I am already using reference-orientation for tables and images, but for readability purpose I need landscape pages.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests