[NTG-context] XML element strip?

Johannes Graumann johannes_graumann at web.de
Tue Apr 4 23:02:38 CEST 2006


Hello,

I have a strange question. While working with XML and ConTeXt, I have run
into the TeXnic problem of the interpretation of line breaks. What I would
prefer to do for code clarity sake are things like the following:
<list>
  <item>
    Something
  </item>
  <item>
    else
  </item>
</list>

This is however screwed up by TeXs line break interpretation, forcing me to
format the input like so:
<list>
  <item>Something</item>
  <item>else</item>
</list>

The question now is: is there any way to tell context to strip trailing
whitespaces/line breaks from XML nodes?

Thanks, Joh



More information about the ntg-context mailing list