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/07/19 16:28:39 UTC
DO NOT REPLY [Bug 10984] New: -
String restriction with pattern - Xerces_C
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=10984>.
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=10984
String restriction with pattern - Xerces_C
Summary: String restriction with pattern - Xerces_C
Product: Xerces-C++
Version: 1.4
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Validating Parser (Schema) (Xerces 1.5 or up only)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: vlado39@hotmail.com
Here is a fragment of a schema:
<xs:complexType name="EnumMailAttributeType">
<xs:sequence>
<xs:element name="Value" maxOccurs="unbounded">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[-
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&_.;\[\]:]+"/>
</xs:element>
</xs:sequence>
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[-
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&_.;\[\]:]+"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="hasNull" type="xs:boolean" use="optional"
default="false"/>
</xs:complexType>
And here is the xml document that I try to validate with Xerces_C and I've got
errors:
<?xml version="1.0" encoding="UTF-8"?>
<EnumMailAttributeSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="MailAttributes.xsd">
<Containers name="Cont">
<Value>Cont1</Value>
<Value>Cont2</Value>
<Value>Cont3</Value>
</Containers>
</EnumMailAttributeSet>
Error: Type of attribute 'name' must be validly derived from type of attribute
in base.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org