--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: python2.3-xmldiff: Whitespace handling incorrect
- From: Erich Schubert <erich@debian.org>
- Date: Sun, 10 Oct 2004 03:17:15 +0200
- Message-id: <20041010011715.9E915234058@wintermute.xmldesign.de>
Package: python2.3-xmldiff
Version: 0.6.4-5
Severity: important
For xupdate output, xmldiff apparently assumes that XML is not
whitespace significant. This is not true. It may be true in some
schemas, but unless you have schema information stating where whitespace
is not significant you should try not to add additional whitespace.
Example:
[...]
<xupdate:insert-after
select="/gconfschemafile[1]/schemalist[1]/schema[148]" >
<xupdate:element name="schema">
<key>
/schemas/apps/galeon/Browsing/Bookmarks/Editor/split_view
</key>
[...]
When processed by an xupdate processor these additional newlines and
whitespace will be added to the destination document.
Think of an HTML file. Whitespace there is usually not significant.
With a couple of exceptions, for example the PRE tag.
In absence of a DTD telling you otherwise (or a user configuration flag)
whitespace must be treated as significant and reproduced correctly.
Having an "ignore whitespace" switch for doing the diff is a first step;
still it should not add new whitespace to a document like shown above.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc3+swsusp
Locale: LANG=de_DE.UTF-8@euro, LC_CTYPE=de_DE.UTF-8@euro
Versions of packages python2.3-xmldiff depends on:
ii python2.3 2.3.4-13 An interactive high-level object-o
ii python2.3-xml 0.8.3-5 XML tools for Python (2.3.x)
ii xmldiff-sgml 0.6.4-5 xmldiff's DTDS and catalogs.
-- no debconf information
--- End Message ---