DITA and XMetaL Discussion
pmoan January 21, 2010 at 7:03 pm
Pagebreaks and DITAJanuary 21, 2010 at 7:03 pmParticipants 6Replies 7Last Activity 13 years ago
We're using XMetal 5.5 and the DITA OT to author content and render publications in PDF. My question pertains to page breaks. There are cases where we need a figure (and the corresponding figure title) to appear at the top of a page- hence the need for a “pagebreak”.
Has anyone else come across this need? If so, how did you handle it?
Thanks in advance for any insight.Chris January 22, 2010 at 12:45 am
Reply to: Pagebreaks and DITAJanuary 22, 2010 at 12:45 am
Two ways come to mind for handling arbitrary page breaks:
1. Insert processing instructions (PIs) into your XML, and implement PI processing like the DocBook XSL library:
2. Add an outputclass attribute to the figures that need a page break before them, and write an XSL template to catch these cases.
I've had decent luck with method #2.
– Chrispmoan January 22, 2010 at 5:14 pm
Reply to: Pagebreaks and DITAJanuary 22, 2010 at 5:14 pm
Thanks much Chris. This is in line with what I thought we might have to do – namely use otherprops and modify the XSLT to generate pagebreaks when the case is processed.mzwecker January 28, 2010 at 9:22 am
Reply to: Pagebreaks and DITAJanuary 28, 2010 at 9:22 am
I would think this solution would be a problem if you are localizing your output. The solution you are suggesting would “hard code” some page breaks? No?pmoan January 28, 2010 at 1:07 pm
Reply to: Pagebreaks and DITAJanuary 28, 2010 at 1:07 pm
Thanks for your note.
When you say “localizing” are you referring to displaying content in multiple languages? Content is displayed in English only.
In general we'd be putting page breaks in front of a specific set of figures that should always appear on their own page.mzwecker January 28, 2010 at 1:22 pm
Reply to: Pagebreaks and DITAJanuary 28, 2010 at 1:22 pm
Yes, I mean if you are delivering your output in multiple languages. For anyone working in EN only this solution sounds good to me. But with translated content sometimes there is expansion (or contraction), so a page break that works in EN may not work in another language. Just something to consider in case you would ever be delivering to other languages.mmoulder January 28, 2010 at 10:15 pm
Reply to: Pagebreaks and DITAJanuary 28, 2010 at 10:15 pm
I have this issue where we do localize into 28 languages, so it is hard to hard code the page breaks and make them happen on the image as suggested. This is really bad for example in our What's New section where we have Text then a screenshot of our new feature. We often have the text on 1 page then the screenshot on the other, which really sucks.
- You must be logged in to reply to this topic.