You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/07/31 17:47:04 UTC

DO NOT REPLY [Bug 11332] New: - Xerces Schema validation differs from Microsoft Schema Validation

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=11332>.
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=11332

Xerces Schema validation differs from Microsoft Schema Validation

           Summary: Xerces Schema validation differs from Microsoft Schema
                    Validation
           Product: Xerces2-J
           Version: 2.0.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: blanca19@lycos.es
                CC: blanca19@lycos.es


Hello.
 I am using XML Spy for creating and manipulating xml and xsd files. The 
problem is that when I validate the following schema with XML Spy, theres no 
trouble at all, but with Xerces it causes me problems. I have tried to modify 
the structure, but with all of them I have the same problem. 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="qualified">
	<xs:element name="Adapter">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="ConnectionManagerClass" 
type="xs:string"/>
				<xs:element name="DataTransformerClass" 
type="xs:string"/>
				<xs:element name="InternalMessageFactoryClass" 
type="xs:string"/>
				<xs:element name="TypeConnections">
					<xs:complexType>
						<xs:sequence>
							<xs:element 
name="TypeConnection" maxOccurs="unbounded">
								<xs:complexType>
								
	<xs:sequence>
									
	<xs:element name="ConnectionClass" type="xs:string"/>
									
	<xs:element name="Connections" type="xs:unsignedInt"/>
									
	<xs:element name="Resource" type="xs:string" minOccurs="0"/>
								
	</xs:sequence>
								
	<xs:attribute name="order" type="xs:unsignedInt" use="required"/>
							
	</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="num" 
type="xs:unsignedInt" use="required"/>
					</xs:complexType>
				</xs:element>
				<xs:group ref="grupo"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:group name="grupo">
		<xs:all>
			<xs:element name="Publisher">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="PTopic" 
maxOccurs="unbounded">
							<xs:complexType>
								<xs:sequence>
								
	<xs:element name="PTopicName" type="xs:string"/>
								
	<xs:element name="PTopicDescription" type="xs:string"/>
								
	<xs:element name="PTopicPolicy">
									
	<xs:simpleType>
										
	<xs:restriction base="xs:NMTOKEN">
										
		<xs:enumeration value="ALLOW_DUPLICATE_MESSAGES"/>
										
		<xs:enumeration value="ALLOW_LOSE_MESSAGES"/>
										
	</xs:restriction>
									
	</xs:simpleType>
								
	</xs:element>
								
	<xs:element name="PTopicMessages">
									
	<xs:complexType>
										
	<xs:sequence>
										
		<xs:element name="PTopicMessage" type="xs:string" 
maxOccurs="unbounded"/>
										
	</xs:sequence>
										
	<xs:attribute name="num" type="xs:unsignedInt" use="required"/>
									
	</xs:complexType>
								
	</xs:element>
								
	<xs:sequence minOccurs="0">
									
	<xs:element name="PTopicSizeQueue" type="xs:unsignedInt"/>
									
	<xs:element name="PTopicThresholdQueue" type="xs:unsignedInt"/>
								
	</xs:sequence>
								</xs:sequence>
								<xs:attribute 
name="order" type="xs:unsignedInt" use="required"/>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="pPriority" 
use="required">
						<xs:simpleType>
							<xs:restriction 
base="xs:NMTOKEN">
								<xs:enumeration 
value="MIN"/>
								<xs:enumeration 
value="MED"/>
								<xs:enumeration 
value="MAX"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
					<xs:attribute name="num" 
type="xs:unsignedInt" use="required"/>
				</xs:complexType>
			</xs:element>
			<xs:element name="Subscriber">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="STopic" 
maxOccurs="unbounded">
							<xs:complexType>
								<xs:sequence>
								
	<xs:element name="STopicName" type="xs:string"/>
								
	<xs:element name="STopicDescription" type="xs:string"/>
								
	<xs:element name="STopicPolicy">
									
	<xs:simpleType>
										
	<xs:restriction base="xs:NMTOKEN">
										
		<xs:enumeration value="ALLOW_DUPLICATE_MESSAGES"/>
										
		<xs:enumeration value="ALLOW_LOSE_MESSAGES"/>
										
	</xs:restriction>
									
	</xs:simpleType>
								
	</xs:element>
								
	<xs:sequence minOccurs="0">
									
	<xs:element name="STopicSizeQueue" type="xs:unsignedInt"/>
									
	<xs:element name="STopicThresholdQueue" type="xs:unsignedInt"/>
								
	</xs:sequence>
								</xs:sequence>
								<xs:attribute 
name="allReply" type="xs:boolean" use="optional" default="0"/>
								<xs:attribute 
name="order" type="xs:unsignedInt" use="required"/>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="sPriority" 
use="required">
						<xs:simpleType>
							<xs:restriction 
base="xs:NMTOKEN">
								<xs:enumeration 
value="MIN"/>
								<xs:enumeration 
value="MED"/>
								<xs:enumeration 
value="MAX"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
					<xs:attribute name="num" 
type="xs:unsignedInt" use="required"/>
				</xs:complexType>
			</xs:element>
		</xs:all>
	</xs:group>
</xs:schema>


Thank you very much. 
     Sonia
     e-mail: blanca19@lycos.es

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org