Darko Škerl created XERCESC-2040:
------------------------------------
Summary: space before & does not collapse
Key: XERCESC-2040
URL: https://issues.apache.org/jira/browse/XERCESC-2040
Project: Xerces-C++
Issue Type: Bug
Components: Validating Parser (XML Schema)
Affects Versions: 2.7.0, 2.8.0
Environment: Windows, AIX
Reporter: Darko Škerl
I have an XSD with typed definition as:
<xs:simpleType name="CustomText">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="100"/>
<xs:whiteSpace value="collapse"/>
<xs:pattern value="\S+.*"/>
</xs:restriction>
</xs:simpleType>
I have an XML with the following tag:
<FreeText> &</FreeText>
Note there is a space before &
FreeText is of type CustomText.
The parser should remove the initial space and leave only & but instead I get
the following error:
Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value '
<' does not match regular expression facet '\S+.*'.
Does anyone know what could be the problem? Is there a workaround for that bug?
Does Xerces 3.1 solve that problem?
Regards
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]