> Am 24.05.2015 um 21:33 schrieb Meer, H. van der <h.vanderm...@uva.nl>: > >> In this case you have to provide a working minimal example. >> >> Wolfgang > > Here an example as minimal as I could construct.
The spaces in the output are produced by the spaces between the tags (\xmlstrip doesn’t seem to work) and you have to use a combination of \removeunwantedspaces and \ignorespaces to remove them. To center your table this isn’t necessary when you replace \midaligned with a framedtext environment in combination with “location=middle” or use a float command like \placefigure. \startxmlsetups xmlcommon \xmlsetsetup{\xmldocument}{table|tr|td}{xmlcommon:*} \stopxmlsetups \xmlregistersetup{xmlcommon} \startxmlsetups xmlcommon:table % \removeunwantedspaces \startembeddedxtable \xmlflush{#1} \stopembeddedxtable % \ignorespaces \stopxmlsetups \startxmlsetups xmlcommon:tr % \removeunwantedspaces \startxrow \xmlflush{#1} \stopxrow % \ignorespaces \stopxmlsetups \startxmlsetups xmlcommon:td % \removeunwantedspaces \startxcell \xmlflush{#1} \stopxcell % \ignorespaces \stopxmlsetups \starttext \startbuffer[a] <?xml version="1.0" encoding="UTF-8"?> <root> <table> <tr> <td>A</td> </tr> </table> </root> \stopbuffer \startbuffer[b] <?xml version="1.0" encoding="UTF-8"?> <root> <table><tr><td>A</td></tr></table> </root> \stopbuffer \ruledhbox{\xmlprocessbuffer{root}{a}{}} \ruledhbox{\xmlprocessbuffer{root}{b}{}} \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________