I have the following problem with xml processing. Spurious space is typeset, 
annoyingly visible when nearly equivalent structures are typeset one under 
another. 
Take the following node structure where the <text> node is the one intended to 
contribute to the typeset material, whereas <anothernode> is not.

<root>
  <node>
    <anothernode>..</anothernode>
    <text>
      ..
    </text>
  </node>
</root>

Doing in the <root>-node: \xmlstripnolines{#1}{/node}\xmlall{#1}{/node} removes 
some of the unwanted spaces but not all. Especially the space between 
</anothernode> and <text> does not completely disappear (seen with 
\xmlstrippednolines).
This also occurs when </anothernode> and <text> are on the same line separated 
by a number of spaces.
The space disappears when </anothernode><text> are put next to another. 
However, this destroys the neat typography of the xml.

The manual tells me that \xmlstripnolines ..collapses embedded spaces from 
nodes under node.. That seems correct in that obviously the code leaves one 
space from the intervening spaces/newlines.
But this gains me nothing! Why leaving a single space between <node> and 
<next-node>? For me this defeats the purpose of xmlstripnolines.

Can this be remedied?

Hans van der Meer



___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to