<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.imprintuniqueid, li.imprintuniqueid, div.imprintuniqueid
        {mso-style-name:imprintuniqueid;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:643510292;
        mso-list-type:hybrid;
        mso-list-template-ids:-1135542326 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:897974607;
        mso-list-type:hybrid;
        mso-list-template-ids:1305661912 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l2
        {mso-list-id:1557617593;
        mso-list-type:hybrid;
        mso-list-template-ids:466010504 67567617 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l2:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l2:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l2:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l2:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l2:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l2:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>To me, best practice is knowing what is a large table and what is not. Then rotate all large ones and not others using something like PMSI from Ken Holman or throwing a new page sequence for the rotated table in it’s own page sequence.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>There could possibly be other tricks but without a complete knowledge of all the said cases and the XSL FO you are using, it is not possible to guess at solutions.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Some people actually format tables in a separate sequence to XEPOUT format and then make decisions based on the width … but this does not good if you change the game (meaning you change something like the width of the table/table columns to solve the issue). And this especially will not work if your tables are 100% wide because 100% of what?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Reduce the problem to scenarios:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo4'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='color:#1F497D'>Leave the table alone<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo4'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='color:#1F497D'>Maybe rotate, maybe shrink<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo4'><![if !supportLists]><span style='color:#1F497D'><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='color:#1F497D'>Rotate<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Then maybe create a new XSL that uses all your page dimensions in two repeating sequences. One would be portrait and one would be landscape.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Format that document (to XEPOUT or even PDF) with all tables repeated in each sequence.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In other words, the result would be table 1 portrait, table 1 landscape, table 2 portrait, table 2 landscape …. Key is that you cannot have 100% for width of table unless you have only two options …. A table is either 100% of the width or 100% of the height (rotated).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>If you do so to XEPOUT, you can do some measuring/calculations programmatically to determine what should be Option #1 (Leave it), Option #2 (Shrink it), Option #3 Rotate it<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Now, you can either remark the original OR you could actually just copy the XEPOUT from the document you created or even the PDFs and use them as images in the final run of your document.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Kevin Brown<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(650) 327-1000 Direct<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(650) 328-8008 Fax<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>(925) 395-1772 Mobile<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>skype:kbrown01<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="mailto:kevin@renderx.com"><span style='color:#0563C1'>kevin@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="mailto:sales@renderx.com"><span style='color:#0563C1'>sales@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><a href="http://www.renderx.com/"><span style='color:#0563C1'>http://www.renderx.com</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> Xep-support [mailto:xep-support-bounces@renderx.com] <b>On Behalf Of </b>uwe.goersch@lhind.dlh.de<br><b>Sent:</b> Sunday, August 07, 2016 9:25 AM<br><b>To:</b> xep-support@renderx.com<br><b>Subject:</b> [xep-support] Table Width Problem<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=DE>Dear RenderX Support,<o:p></o:p></span></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal>We encounter the following situation:<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo2'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>We render input XML documents to PDF, the page format is A4 portrait and the available width is reduced by several margins that must be provided. <o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo2'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>The input XML documents contain (CALS) tables, some of which have a large width so that such tables cannot be rendered in a readable way without an appropriate action like reducing the font size or even rotating the table. <o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo2'><![if !supportLists]><span style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'>         </span></span></span><![endif]>We cannot calculate the table width from the input documents reliably because proportional column width is being used so that we do not know which table requires an appropriate action and we cannot apply the action to all tables.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What are the best practices to solve such a problem? Thank you very much in advance for your support!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal>Uwe Goersch<o:p></o:p></p><p class=MsoNormal style='margin-top:12.0pt;line-height:150%;text-autospace:none'><span style='font-size:8.0pt;line-height:150%;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>________________________________                                              <o:p></o:p></span></p><p class=MsoNormal style='margin-top:8.0pt;page-break-after:avoid;text-autospace:none'><b><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Uwe Görsch</span></b><b><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray'><o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Senior Consultant Technical Documentation<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Lufthansa Industry Solutions BS GmbH<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>HAM AB/M-D<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Sportallee 54 a<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>D-22335 Hamburg, Germany<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Phone: +49 40 5070 1938<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Mobile: +49 151 5892 2594<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>Fax: +49 40 5070 4611<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>SIP:<b> <a href="mailto:U405042@dlh.de"><span style='color:gray'>mailto:U405042@dlh.de</span></a></b><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'>E-Mail: </span><b><u><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'><a href="uwe.goersch@lhind.dlh.de"><span lang=DE style='color:gray'>uwe.goersch@lhind.dlh.de</span></a></span></u></b><span lang=DE style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><b><u><span lang=DE style='font-size:8.0pt;font-family:"Arial",sans-serif;color:gray;mso-fareast-language:DE'><a href="http://www.lufthansa-industry-solutions.com/"><span style='color:gray'>www.lufthansa-industry-solutions.com</span></a><o:p></o:p></span></u></b></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=imprintuniqueid><span lang=DE> <o:p></o:p></span></p><p class=imprintuniqueid style='margin-bottom:12.0pt'><span lang=DE style='font-size:7.5pt;font-family:"Arial",sans-serif;color:#7D7D7D'>Sitz der Gesellschaft / Corporate Headquarters: Lufthansa Industry Solutions BS GmbH, Raunheim, Registereintragung / Registration: Amtsgericht Darmstadt HRB 83850<br>Geschaeftsfuehrung / Management Board: Bernd Appel<br><br><br></span><span lang=DE><o:p></o:p></span></p></div></body></html>