You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/10/04 14:07:10 UTC
DO NOT REPLY [Bug 13283] New: -
regular pattern checking does not work for [.\n]*
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13283>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13283
regular pattern checking does not work for [.\n]*
Summary: regular pattern checking does not work for [.\n]*
Product: Xerces-C++
Version: 2.1.0
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: Build
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: maikel.jansen@asml.nl
I have the following simple type:
<simpleType name="testRegType">
<restriction base="string">
<pattern value="[.\n]*"/>
</restriction>
</simpleType>
which is a valid XML Schema type, also according to the xerces C++ parser.
However when validating the following document (element X has type testRegType):
<X>
The next sentence is not true
The previous sentence is true
</X>
Pparse gives the following error:
Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value '
The next sentence is not true
The previous sentence is true ' does not match regular expression facet '[.\n]*
However, the value DOES match the pattern. This seems like a bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org