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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
