<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 25.05.2015 um 12:08 schrieb Meer, H. van der <<a href="mailto:H.vanderMeer@uva.nl" class="">H.vanderMeer@uva.nl</a>>:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div class="">
<div class="" style="word-wrap:break-word"><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On 24 May 2015, at 22:53, Wolfgang Schuster <<a href="mailto:schuster.wolfgang@gmail.com" class="">schuster.wolfgang@gmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class=""><br class="">
<blockquote type="cite" class="">Am 24.05.2015 um 21:33 schrieb Meer, H. van der <<a href="mailto:H.vanderMeer@uva.nl" class="">H.vanderMeer@uva.nl</a>>:<br class="">
<br class="">
Here an example as minimal as I could construct.<br class="">
</blockquote>
<br class="">
The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work)<br class="">
and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them.<br class="">
<br class="">
To center your table this isn’t necessary when you replace \midaligned with a framedtext<br class="">
environment in combination with “location=middle” or use a float command like \placefigure.<br class="">
<br class="">
</div>
</blockquote>
<br class="">
</div>
<div class="">I think I can reduce the number of places where spaces have to be suppressed. With just 2 \removeunwantedspaces and 1 \ignorespaces I get rid of most of them. The \framed[offset=0pt] shows where spurious space is still inserted.</div>
<div class=""><br class="">
</div>
<div class="">Only 1 space remains inside the framed: in the vertical dimension below the table. Any idea where this comes from? Some parameter to change in the \framerd perhaps?</div>
<div class=""></div></div></div></div></blockquote><div><br class=""></div><div>It’s impossible to tell what’s wrong with our code snippets, you have to create working minimal examples.</div><div><br class=""></div><div>The following example shows where you have to take care of extra space and you don’t need them when you put the whole table in a \vbox (you can test by commenting all \ignorespaces and \removeunwantedspaces commands and replacing \ruledhbox with \ruledvbox).</div><div><br class=""></div><div><div>\startxmlsetups xmlcommon</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>\xmlsetsetup{\xmldocument}{table|tbody|tr|td}{xmlcommon:*}</div><div>\stopxmlsetups</div><div><br class=""></div><div>\xmlregistersetup{xmlcommon}</div><div><br class=""></div><div>\startxmlsetups xmlcommon:table</div><div>%<span class="Apple-tab-span" style="white-space:pre">    </span>\removeunwantedspaces</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\startembeddedxtable</div><div><span class="Apple-tab-span" style="white-space:pre">         </span>\xmlflush{#1}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\stopembeddedxtable</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>\ignorespaces</div><div>\stopxmlsetups</div><div><br class=""></div><div>\startxmlsetups xmlcommon:tbody</div><div>%<span class="Apple-tab-span" style="white-space:pre">        </span>\removeunwantedspaces</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\startxtablebody</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>\xmlflush{#1}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\stopxtablebody</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>\ignorespaces</div><div>\stopxmlsetups</div><div><br class=""></div><div>\startxmlsetups xmlcommon:tr</div><div>%<span class="Apple-tab-span" style="white-space:pre">   </span>\removeunwantedspaces</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\startxrow</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>\xmlflush{#1}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\stopxrow</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>\ignorespaces</div><div>\stopxmlsetups</div><div><br class=""></div><div>\startxmlsetups xmlcommon:td</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>\removeunwantedspaces</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\startxcell</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>\xmlflush{#1}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\stopxcell</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>\ignorespaces</div><div>\stopxmlsetups</div><div><br class=""></div><div>\starttext</div><div><br class=""></div><div>\startbuffer[table]</div><div><?xml version="1.0" encoding="UTF-8"?></div><div><root></div><div><span class="Apple-tab-span" style="white-space:pre">      </span><table></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><tbody></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><tr></div><div><span class="Apple-tab-span" style="white-space:pre">                           </span><td>A</td></div><div><span class="Apple-tab-span" style="white-space:pre">                               </span><td>B</td></div><div><span class="Apple-tab-span" style="white-space:pre">                       </span></tr></div><div><span class="Apple-tab-span" style="white-space:pre">                  </span><tr></div><div><span class="Apple-tab-span" style="white-space:pre">                           </span><td>C</td></div><div><span class="Apple-tab-span" style="white-space:pre">                               </span><td>D</td></div><div><span class="Apple-tab-span" style="white-space:pre">                       </span></tr></div><div><span class="Apple-tab-span" style="white-space:pre">          </span></tbody></div><div><span class="Apple-tab-span" style="white-space:pre">       </span></table></div><div></root></div><div>\stopbuffer</div><div><br class=""></div><div>\ruledhbox{\xmlprocessbuffer{root}{table}{}}</div><div><br class=""></div><div>\stoptext</div><div class=""><br class=""></div><div class="">Wolfgang</div></div></div></body></html>