venu 2004/03/16 21:59:54
Modified: java/src/org/apache/xerces/impl/xs/traversers
XSDNotationTraverser.java
Log:
Check made as per 3.12.1 section n http://www.w3.org/TR/xmlschema-1/
Revision Changes Path
1.14 +4 -1
xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDNotationTraverser.java
Index: XSDNotationTraverser.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDNotationTraverser.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XSDNotationTraverser.java 24 Feb 2004 22:59:14 -0000 1.13
+++ XSDNotationTraverser.java 17 Mar 2004 05:59:54 -0000 1.14
@@ -62,6 +62,9 @@
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
return null;
}
+
+ if (systemAttr == null && publicAttr == null)
+ reportSchemaError("s4s-att-must-appear", new
Object[]{SchemaSymbols.ELT_NOTATION, "system or public"}, elmNode);
XSNotationDecl notation = new XSNotationDecl();
notation.fName = nameAttr;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]