[xml] [PATCH] Do normalize string-based datatype value in RelaxNG facet checking



We are currently unable to validate some documents because of
https://mail.gnome.org/archives/xml/2013-November/msg00028.html
(short summary: pattern restriction on token type is tested on
non-normalized value).

We have found that the proposed patch by Jan Pokorný actually works for us,
but hasn't been applied yet.
So we made some modifications to the original patch to improve it,
as per Daniel's review, and added a (rather simple) test file.


Audric Schiltknecht (1):
  Do normalize string-based datatype value in RelaxNG facet checking

 include/libxml/schemasInternals.h | 92 +++++++++++++++++++--------------------
 result/relaxng/pattern3_1         |  0
 result/relaxng/pattern3_1.err     |  1 +
 test/relaxng/pattern3.rng         | 11 +++++
 test/relaxng/pattern3_1.xml       |  1 +
 xmlschemastypes.c                 | 10 ++++-
 6 files changed, 68 insertions(+), 47 deletions(-)
 create mode 100644 result/relaxng/pattern3_1
 create mode 100644 result/relaxng/pattern3_1.err
 create mode 100644 test/relaxng/pattern3.rng
 create mode 100644 test/relaxng/pattern3_1.xml

-- 
2.7.0



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