From 99eb1e9b0da905498aa2584362581cf8c7071f76 Mon Sep 17 00:00:00 2001 From: Khaled Noaman <knoaman@apache.org> Date: Tue, 18 Mar 2003 19:43:24 +0000 Subject: [PATCH] Schema Errata E2-18. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174870 13f79535-47bb-0310-9956-ffa450edef68 --- scripts/sanityTest_ExpectedResult.log | 2 +- .../validators/datatype/DatatypeValidatorFactory.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/sanityTest_ExpectedResult.log b/scripts/sanityTest_ExpectedResult.log index eb42901e0..10926087d 100644 --- a/scripts/sanityTest_ExpectedResult.log +++ b/scripts/sanityTest_ExpectedResult.log @@ -780,7 +780,7 @@ Attributes: Base Datatype: Decimal Facets: fractionDigits=0 - pattern=[+-]?[0-9]+ + pattern=[+\-]?[0-9]+ Name: id Type: ID diff --git a/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp b/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp index 27d6124c0..2039ad94b 100644 --- a/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp +++ b/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.13 2003/03/18 19:42:17 knoaman + * Schema Errata E2-18. + * * Revision 1.12 2003/02/26 16:14:27 peiyongz * Schema Errata E2-43: disallow trailing decimal point and a new pattern added * to the Integer definition. @@ -239,11 +242,11 @@ const XMLCh fgLangPattern[] = }; //E2-43 -//[+-]?[0-9]+ +//[+\-]?[0-9]+ const XMLCh fgIntegerPattern[] = { - chOpenSquare, chPlus, chDash, chCloseSquare, chQuestion, - chOpenSquare, chDigit_0, chDash, chDigit_9, chCloseSquare, chPlus, chNull + chOpenSquare, chPlus, chBackSlash, chDash, chCloseSquare, chQuestion, + chOpenSquare, chDigit_0, chDash, chDigit_9, chCloseSquare, chPlus, chNull }; //"\\i\\c*" -- GitLab