Table Keep with next across N rows

Questions about XML that are not covered by the other forums should go here.
Edwin
Posts: 21

Table Keep with next across N rows

Thu Jun 02, 2016 12:29 pm

Hi I would like to create a table definition where tables that are less than 10 rows are not allowed to break across pages and longer tables are allowed to break, is that even possible? Does anybody have a solution?
xephon
Posts: 96
Location: Münster/Germany

Re: Table Keep with next across N rows

Fri Jun 03, 2016 8:23 am

Yes, you could create a Schematron rule that counts the rows and then forces the author to set an output class, if the number of rows are < 10. Then you can create a pdf2 template with sets a keep-with attribute on that table that avoids breaking it. You probably should flavor the Schematron rule with a character counter, because a table with 10 rows might fill a page, when the rows contain a lot of text.
Join the DOCTALES DITA development team :arrow: https://doctales.atlassian.net/wiki

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests