Hi,

>     No it drops linefeeds when xml:space is set to "default" the
> question is how child elements of the text element interact with
> white space handling. So in your second case you have:
> 
>   [space 1]<element/>[space 2][text][space 3]
> 
>     So clearly "space 1" and "space 3" are to be eliminated
> the question is what should happen to "space 2"?  Is it
> part of leading space? or is it part of 'text'.  What if
> element is a tspan/tref (even if empty?), what if it's a
> glyphRef (which is always empty).  What if it has a
> separate value for "xml:space"?  This is really quite complex.

We have similar problem, and our current workaround (not solution) is
once the DOM tree is build, iterate the DOM to find empty Text node and
remove it.

The larger the Document, the longer the time to iterate the DOM tree.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to