xerces-j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18677] New: - s4s-elt-must-match: error message
Date Thu, 03 Apr 2003 23:11:36 GMT
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=18677>.
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=18677

s4s-elt-must-match: error message

           Summary: s4s-elt-must-match: error message
           Product: Xerces2-J
           Version: 2.4.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: nddelima@ca.ibm.com


A very minor unnoticeable issue, if the content of a union is invalid (see test 
below), the error message generated indicates that the simpleType is a list...  
s4s-elt-must-match: The content of 'list' must match (annotation?, 
(simpleType*)).

Schema:
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
	targetNamespace="test"
	xmlns:sv="test">
	<simpleType name="strUnionA">
		<union memberTypes="string">
			<whiteSpace value="preserve"/>
		</union>
	</simpleType>
	<element name="root"/>
</schema>

Instance
<?xml version="1.0" encoding="UTF-8"?>
<dv:root xmlns:dv="test"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="test test.xsd"/>


Patch:
Index: XSDSimpleTypeTraverser.java
===================================================================
RCS file: /home/cvspublic/xml-
xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java
,v
retrieving revision 1.21
diff -u -r1.21 XSDSimpleTypeTraverser.java
--- XSDSimpleTypeTraverser.java	20 Jan 2003 17:44:41 -0000	1.21
+++ XSDSimpleTypeTraverser.java	3 Apr 2003 15:18:27 -0000
@@ -383,7 +383,7 @@
                 reportSchemaError("s4s-elt-must-match", new Object[]
{SchemaSymbols.ELT_LIST, "(annotation?, (simpleType?))"}, content);
             }
             else if (union) {
-                reportSchemaError("s4s-elt-must-match", new Object[]
{SchemaSymbols.ELT_LIST, "(annotation?, (simpleType*))"}, content);
+                reportSchemaError("s4s-elt-must-match", new Object[]
{SchemaSymbols.ELT_UNION, "(annotation?, (simpleType*))"}, content);
             }
         }

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


Mime
View raw message