Re: [xml] shouldn't xmlNodeDumpOutputInternal obey xml:space="preserve"?



I've got one, in a publishing application where spaces really DO matter.

And you'd think you'd find the same need in any word processing app that saved as XML.

And this change wouldn't break anything else--it would only cover a new case.

On Sunday, June 1, 2003, at 06:59  PM, Daniel Veillard wrote:

On Sun, Jun 01, 2003 at 04:43:08PM -0400, Chris Ryland wrote:
Shouldn't the code, where it scans the children for TEXT or ENTITY node
(when format == 1), also check that xml:space="preserve" isn't in
effect for the current node and disable formatting if it is?

At least that's how I read it--it would give you the best of both
worlds: formatting except where space preservation is marked as
critical.

I have yet to see a real XML instance (i.e. outside of testsuite) with
any xml:space set ... I don't think we can rely on this in practice...

Daniel

--
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]