[xml] Whitespace in Public IDs (was: libxml2-2.6.11 -- 1. gcc warning...)
- From: Peter Breitenlohner <peb mppmu mpg de>
- To: Daniel Veillard <veillard redhat com>
- Cc: xml gnome org
- Subject: [xml] Whitespace in Public IDs (was: libxml2-2.6.11 -- 1. gcc warning...)
- Date: Fri, 9 Jul 2004 16:27:52 +0200 (CEST)
On Fri, 9 Jul 2004, Daniel Veillard wrote:
On Thu, Jul 08, 2004 at 10:12:33AM +0200, Peter Breitenlohner wrote:
.....................
I noticed that the existing libxml2 (<=2.6.9) does not obey section 6.2
(Public Identifier Normalization) of the specs:
-----------------------------------------
In order to accurately and interoperably compare public identifiers, catalog
processors must perform normalization on public identifiers in both the
catalog and the input passed to them.
All strings of white space in public identifiers must be normalized to
single space characters (#x20), and leading and trailing white space must
be removed.
-----------------------------------------
This is certainly not done in the present version, .........
If the `must' in the specs is interpreted as manatory requirement, the only
reliable way to do that probably is in catalog.c, even if that may be
awkward if temporary strings have to be created that are later to be freed
(by whom and when?).
Hum, right. Basically all public entry point using Public ID should be
patched to check this and if needed a new string should be allocated.
That would need a new function for this, and a few more line in all those
functions ... Not very hard but admitedly boring :-)
Hi Daniel,
If you agree, I could try to produce a patch to that effect.
regards
Peter Breitenlohner <peb mppmu mpg de>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]