Author: mukulg
Date: Thu Nov 24 03:52:18 2011
New Revision: 1205718
URL: http://svn.apache.org/viewvc?rev=1205718&view=rev
Log:
defining a missing error code in schema 1.1 properties file.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties?rev=1205718&r1=1205717&r2=1205718&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
Thu Nov 24 03:52:18 2011
@@ -185,7 +185,8 @@
src-type-alternative.3.12.13.1 = src-type-alternative.3.12.13.1: Type
atlernative has both a ''type'' attribute and a ''anonymous type'' child. Only
one of these is allowed for a type alternative.
src-type-alternative.3.12.13.2 = src-type-alternative.3.12.13.2: Type
definition missing for type atlernative. A ''type'' attribute, or a
''complexType'' child element, or a ''simpleType'' child element must be
present.
src-wildcard.1 = src-wildcard.1: The properties ''namespace'' and
''notNamespace'' cannot both be present in a wildcard declaration. Use only one
of them.
- src-cip.1 = src-cip.1: The attribute ''{0}'' does not belong to schema
versioning namespace (http://www.w3.org/2007/XMLSchema-versioning). Only
following attributes are available for schema versioning namespace :
''minVersion'', ''maxVersion'', ''typeAvailable'', ''typeUnavailable'',
''facetAvailable'' and ''facetUnavailable''.
+ src-cip.1 = src-cip.1: The attribute ''{0}'' does not belong to schema
versioning namespace (http://www.w3.org/2007/XMLSchema-versioning). Only
following attributes are available for schema versioning namespace :
''minVersion'', ''maxVersion'', ''typeAvailable'', ''typeUnavailable'',
''facetAvailable'' and ''facetUnavailable''.
+ src-assert.3.13.1 = src-assert.3.13.1: The mandatory attribute
''test'' does not appear on the element ''assert'', within type definition
''{0}''.
#constraint valid (3.X.6)
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java?rev=1205718&r1=1205717&r2=1205718&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDComplexTypeTraverser.java
Thu Nov 24 03:52:18 2011
@@ -42,6 +42,7 @@ import org.apache.xerces.impl.xs.asserti
import org.apache.xerces.impl.xs.assertion.XSAssertImpl;
import org.apache.xerces.impl.xs.util.XInt;
import org.apache.xerces.impl.xs.util.XSObjectListImpl;
+import org.apache.xerces.impl.xs.util.XSTypeHelper;
import org.apache.xerces.util.DOMUtil;
import org.apache.xerces.util.XMLChar;
import org.apache.xerces.util.XMLSymbols;
@@ -1758,8 +1759,8 @@ class XSDComplexTypeTraverser extends X
}
}
} else {
- // 'test' attribute is mandatory in an assert element
- reportSchemaError("src-assert.3.13.1", new Object[] {
DOMUtil.getLocalName(assertElement) }, assertElement);
+ // 'test' attribute is mandatory on an assert element
+ reportSchemaError("src-assert.3.13.1", new Object[] {
XSTypeHelper.getSchemaTypeName(enclosingCT) }, assertElement);
}
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]