https://issues.apache.org/bugzilla/show_bug.cgi?id=48032

--- Comment #2 from Jeremias Maerki <[email protected]> 2009-11-02 08:13:48 
UTC ---
> Question remains: is there any risk that other elements containing text may be
> affected by that xml:space?

To answer that I want to mention why I added the xml:space=preserve in the
first place: Editing IF in an XML editor frequently messed up the formatting
because of pretty-printing. FOP itself doesn't really profit from it (and can
do without). The default behaviour is application-specific which is fine in
FOP, but an XML editor doesn't know about that except if there's an XML Schema
active in the XML editor which could supply the intended default behaviour. But
I haven't tested whether that would really work.

> Also, is there any testing framework for the intermediate format, to test 
> that > change?

The only thing we do now is test using XPath statements and I don't think I've
written any test that looks for the xml:space attribute. Essentially, you can
simply remove the xml:space and the tests will run through as before. As said
above, the only case where xml:space is useful is when it comes to manually
editing the IF in an XML editor. It avoids breaking the content.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to