mrglavas    2005/06/13 21:24:24

  Modified:    java/src/org/apache/xerces/impl/msg
                        XMLSchemaMessages.properties
  Log:
  Fix formatting of schema error messages.
  
  Revision  Changes    Path
  1.78      +14 -14    
xml-xerces/java/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties
  
  Index: XMLSchemaMessages.properties
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/msg/XMLSchemaMessages.properties,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- XMLSchemaMessages.properties      13 Jun 2005 04:31:04 -0000      1.77
  +++ XMLSchemaMessages.properties      14 Jun 2005 04:24:24 -0000      1.78
  @@ -10,7 +10,7 @@
   
           Internal-Error = Internal error: {0}.
           dt-whitespace = Whitespace facet value is not available for the 
union simpleType ''{0}''
  -        GrammarConflict = One of the grammar(s) returned from the user''s 
grammar pool is in conflict with another grammar.
  +        GrammarConflict = One of the grammar(s) returned from the user's 
grammar pool is in conflict with another grammar.
   
   # Identity constraints
   
  @@ -19,7 +19,7 @@
           DuplicateKey = Duplicate key value [{0}] declared for identity 
constraint of element \"{1}\".
           DuplicateUnique = Duplicate unique value [{0}] declared for identity 
constraint of element \"{1}\".
           FieldMultipleMatch = Identity constraint error:  field \"{0}\" 
matches more than one value within the scope of its selector; fields must match 
unique values.
  -        FixedDiffersFromActual = The content of this element is not 
equivalent to the value of the \"fixed\" attribute in the element''s 
declaration in the schema.
  +        FixedDiffersFromActual = The content of this element is not 
equivalent to the value of the \"fixed\" attribute in the element's declaration 
in the schema.
           KeyMatchesNillable = Identity Constraint error 
(cvc-identity-constraint.4.2.3):  element \"{0}\" has a key which matches an 
element which has nillable set to true.
           KeyNotEnoughValues = Not enough values specified for <key 
name=\"{1}\"> identity constraint specified for element \"{0}\".
           KeyNotFound = Key ''{0}'' with value ''{1}'' not found for identity 
constraint of element ''{2}''.
  @@ -89,7 +89,7 @@
           src-annotation = src-annotation: <annotation> elements can only 
contain <appinfo> and <documentation> elements, but ''{0}'' was found.
           src-attribute.1 = src-attribute.1: The properties ''default'' and 
''fixed'' cannot both be present in attribute declaration ''{0}''. Use only one 
of them.
           src-attribute.2 = src-attribute.2: : The property ''default'' is 
present in attribute ''{0}'', so the value of ''use'' must be ''optional''.
  -        src-attribute.3.1 = src-attribute.3.1: One of ''ref'' or ''name'' 
must be present in a local attribute declaration.
  +        src-attribute.3.1 = src-attribute.3.1: One of 'ref' or 'name' must 
be present in a local attribute declaration.
           src-attribute.3.2 = src-attribute.3.2: The content must match 
(annotation?) for the attribute reference ''{0}''.
           src-attribute.4 = src-attribute.4: Attribute ''{0}'' has both a 
''type'' attribute and an anonymous ''simpleType'' child. Only one of these is 
allowed for an attribute.
           src-attribute_group.2 = src-attribute_group.2: The intersection of 
wildcards is not expressible for attribute group ''{0}''.
  @@ -99,7 +99,7 @@
           src-ct.2.2 = src-ct.2.2: Complex Type Definition Representation 
Error for type ''{0}''.  When a complexType with simpleContent restricts a 
complexType with mixed content and emptiable particle, then there must be a 
<simpleType> among the children of <restriction>.
           src-ct.4 = src-ct.4: Complex Type Definition Representation Error 
for type ''{0}''.  The intersection of wildcards is not expressible.
           src-element.1 = src-element.1: The properties ''default'' and 
''fixed'' cannot both be present in element declaration ''{0}''. Use only one 
of them.
  -        src-element.2.1 = src-element.2.1: : One of ''ref'' or ''name'' must 
be present in a local element declaration.
  +        src-element.2.1 = src-element.2.1: : One of 'ref' or 'name' must be 
present in a local element declaration.
           src-element.2.2 = src-element.2.2: Since ''{0}'' contains the 
''ref'' attribute, its content must match (annotation?). However, ''{1}'' was 
found.
           src-element.3 = src-element.3: Element ''{0}'' has both a ''type'' 
attribute and a ''anonymous type'' child. Only one of these is allowed for an 
element.
           src-import.1.1 = src-import.1.1: The namespace attribute ''{0}'' of 
an <import> element information item must not be the same as the 
targetNamespace of the schema it exists in.
  @@ -110,11 +110,11 @@
           src-include.2.1 = src-include.2.1: The targetNamespace of the 
referenced schema, currently ''{1}'', must be identical to that of the 
including schema, currently ''{0}''.
           src-redefine.2 = src-redefine.2: The root element of document 
''{0}'' has to have the namespace name ''http://www.w3.org/2001/XMLSchema'' and 
the local name ''schema''.
           src-redefine.3.1 = src-redefine.3.1: The targetNamespace of the 
referenced schema, currently ''{1}'', must be identical to that of the 
redefining schema, currently ''{0}''.
  -        src-redefine.5.a.a = src-redefine.5.a.a: No non-annotation children 
of <simpleType> were found. <simpleType> children of <redefine> elements must 
have <restriction> descendants, with ''base'' attributes that refer to 
themselves.
  +        src-redefine.5.a.a = src-redefine.5.a.a: No non-annotation children 
of <simpleType> were found. <simpleType> children of <redefine> elements must 
have <restriction> descendants, with 'base' attributes that refer to themselves.
           src-redefine.5.a.b = src-redefine.5.a.b: ''{0}'' is not a valid 
child element. <simpleType> children of <redefine> elements must have 
<restriction> descendants, with ''base'' attributes that refer to themselves.
           src-redefine.5.a.c = src-redefine.5.a.c: ''{0}'' does not have a 
''base'' attribute that refers to the redefined element, ''{1}''. <simpleType> 
children of <redefine> elements must have <restriction> descendants, with 
''base'' attributes that refer to themselves.
  -        src-redefine.5.b.a = src-redefine.5.b.a: No non-annotation children 
of <complexType> were found. <complexType> children of <redefine> elements must 
have <extension> or <restriction> descendants, with ''base'' attributes that 
refer to themselves.
  -        src-redefine.5.b.b = src-redefine.5.b.b: No non-annotation 
grandchildren of <complexType> were found. <complexType> children of <redefine> 
elements must have <extension> or <restriction> descendants, with ''base'' 
attributes that refer to themselves.
  +        src-redefine.5.b.a = src-redefine.5.b.a: No non-annotation children 
of <complexType> were found. <complexType> children of <redefine> elements must 
have <extension> or <restriction> descendants, with 'base' attributes that 
refer to themselves.
  +        src-redefine.5.b.b = src-redefine.5.b.b: No non-annotation 
grandchildren of <complexType> were found. <complexType> children of <redefine> 
elements must have <extension> or <restriction> descendants, with 'base' 
attributes that refer to themselves.
           src-redefine.5.b.c = src-redefine.5.b.c: ''{0}'' is not a valid 
grandchild element. <complexType> children of <redefine> elements must have 
<extension> or <restriction> descendants, with ''base'' attributes that refer 
to themselves.
           src-redefine.5.b.d = src-redefine.5.b.d: ''{0}'' does not have a 
''base'' attribute that refers to the redefined element, ''{1}''. <complexType> 
children of <redefine> elements must have <extension> or <restriction> 
descendants, with ''base'' attributes that refer to themselves.
           src-redefine.6.1.1 = src-redefine.6.1.1:  If a group child of a 
<redefine> element contains a group referring itself, it must have exactly 1; 
this one has ''{0}''.
  @@ -139,9 +139,9 @@
           ag-props-correct.2 = ag-props-correct.2: Error for attribute group 
''{0}''.  Duplicate attribute uses with the same name and target namespace are 
specified.  Name of duplicate attribute use is ''{1}''.
           ag-props-correct.3 = ag-props-correct.3: Error for attribute group 
''{0}''.  Two attribute declarations, ''{1}'' and ''{2}'' have types which are 
derived from ID.
           a-props-correct.2 = a-props-correct.2: Invalid value constraint 
value ''{1}'' in attribute ''{0}''.
  -        a-props-correct.3 = a-props-correct.3: Attribute ''{0}'' cannot use 
''fixed'' or ''default'', because the attribute''s '''{type definition}''' is 
ID, or is derived from ID.
  +        a-props-correct.3 = a-props-correct.3: Attribute ''{0}'' cannot use 
''fixed'' or ''default'', because the attribute''s '{'type definition'}' is ID, 
or is derived from ID.
           au-props-correct.2 = au-props-correct.2: In the attribute 
declaration of ''{0}'', a fixed value of ''{1}'' was specified. So if the 
attribute use referring to ''{0}'' also has a '{'value constraint'}', it must 
be fixed and its value must be ''{1}''.
  -        cos-all-limited.1.2 = cos-all-limited.1.2: An 'all' model group must 
appear in a particle with '''{min occurs}''' = '''{max occurs}''' = 1, and that 
particle must be part of a pair which constitutes the '''{content type}''' of a 
complex type definition.
  +        cos-all-limited.1.2 = cos-all-limited.1.2: An 'all' model group must 
appear in a particle with '{'min occurs'}' = '{'max occurs'}' = 1, and that 
particle must be part of a pair which constitutes the '{'content type'}' of a 
complex type definition.
           cos-all-limited.2 = cos-all-limited.2: The '{'max occurs'}' of an 
element in an ''all'' model group must be 0 or 1. The value ''{0}'' for element 
''{1}'' is invalid.
           cos-applicable-facets = cos-applicable-facets: Facet ''{0}'' is not 
allowed by type {1}.
           cos-ct-extends.1.1 = cos-ct-extends.1.1: Type ''{0}'' was derived by 
extension from type ''{1}''.  However, the ''final'' attribute of ''{1}'' 
forbids derivation by extension.
  @@ -158,7 +158,7 @@
           cos-st-restricts.2.3.1.1 = cos-st-restricts.2.3.1.1: The '{'final'}' 
component of the '{'item type definition'}', ''{0}'', contains ''list''. This 
means that ''{0}'' cannot be used as an item type for list type ''{1}''.
           cos-st-restricts.3.3.1.1 = cos-st-restricts.3.3.1.1: The '{'final'}' 
component of the '{'member type definitions'}', ''{0}'', contains ''union''. 
This means that ''{0}'' cannot be used as an member type for union type ''{1}''.
           cos-valid-default.2.1 = cos-valid-default.2.1: Element ''{0}'' has a 
value constraint and must have a mixed or simple content model.
  -        cos-valid-default.2.2.2 = cos-valid-default.2.2.2: Since element 
''{0}'' has a '{'value constraint'}' and its type definition has mixed 
'{'content type'}', then the particle of the '{'content type'}'' must be 
emptiable.
  +        cos-valid-default.2.2.2 = cos-valid-default.2.2.2: Since element 
''{0}'' has a '{'value constraint'}' and its type definition has mixed 
'{'content type'}', then the particle of the '{'content type'}' must be 
emptiable.
           c-props-correct.2 = c-props-correct.2: Cardinality of Fields for 
keyref ''{0}'' and key ''{1}'' must match each other.
           ct-props-correct.3 = ct-props-correct.3: Circular definitions 
detected for complex type ''{0}''. This means that ''{0}'' is contained in its 
own type hierarchy, which is an error.
           ct-props-correct.4 = ct-props-correct.4: Error for type ''{0}''. 
Duplicate attribute uses with the same name and target namespace are specified. 
 Name of duplicate attribute use is ''{1}''.
  @@ -202,7 +202,7 @@
           maxInclusive-valid-restriction.3 = maxInclusive-valid-restriction.3: 
Error for type ''{2}''. The maxInclusive value =''{0}'' must be >= minInclusive 
of the base type ''{1}''.
           maxInclusive-valid-restriction.4 = maxInclusive-valid-restriction.4: 
Error for type ''{2}''. The maxInclusive value =''{0}'' must be > minExclusive 
of the base type ''{1}''.
           maxLength-valid-restriction = maxLength-valid-restriction: In the 
definition of {2}, maxLength value = ''{0}'' must be <= that of the base type 
''{1}''.
  -        mg-props-correct.2 = mg-props-correct.2: Circular definitions 
detected for group ''{0}''. Recursively following the '''{term}''' values of 
the particles leads to a particle whose '''{term}''' is the group itself.
  +        mg-props-correct.2 = mg-props-correct.2: Circular definitions 
detected for group ''{0}''. Recursively following the '{'term'}' values of the 
particles leads to a particle whose '{'term'}' is the group itself.
           minExclusive-less-than-equal-to-maxExclusive = 
minExclusive-less-than-equal-to-maxExclusive: In the definition of {2}, 
minExclusive value = ''{0}'' must be <= maxExclusive value = ''{1}''.
           minExclusive-less-than-maxInclusive = 
minExclusive-less-than-maxInclusive: In the definition of {2}, minExclusive 
value = ''{0}'' must be < maxInclusive value = ''{1}''.
           minExclusive-valid-restriction.1 = minExclusive-valid-restriction.1: 
Error for type ''{2}''. The minExclusive value =''{0}'' must be >= minExclusive 
of the base type ''{1}''.
  @@ -218,7 +218,7 @@
           minInclusive-valid-restriction.4 = minInclusive-valid-restriction.4: 
Error for type ''{2}''. The minInclusive value =''{0}'' must be < maxExclusive 
of the base type ''{1}''.
           minLength-less-than-equal-to-maxLength = 
minLength-less-than-equal-to-maxLength: In the definition of {2}, value of 
minLength = ''{0}'' must be < value of maxLength = ''{1}''.
           minLength-valid-restriction = minLength-valid-restriction: In the 
definition of {2}, minLength = ''{0}'' must be >= than that of the base type, 
''{1}''.
  -        no-xmlns = no-xmlns: The '{'name'}' of an attribute declaration must 
not match ''xmlns''.
  +        no-xmlns = no-xmlns: The {name} of an attribute declaration must not 
match 'xmlns'.
           no-xsi = no-xsi: The '{'target namespace'}' of an attribute 
declaration must not match ''{0}''.
           p-props-correct.2.1 = p-props-correct.2.1: In the declaration of 
''{0}'', the value of ''minOccurs'' is ''{1}'', but it must not be greater than 
the value of ''maxOccurs'', which is ''{2}''.
           rcase-MapAndSum.1 = rcase-MapAndSum.1: There is not a complete 
functional mapping between the particles.
  @@ -279,7 +279,7 @@
           FixedFacetValue = FixedFacetValue: In the definition of {3}, the 
value ''{1}'' for the facet ''{0}'' is invalid, because the value for ''{0}'' 
has been set to ''{2}'' in one of the ancestor types, and '{'fixed'}' = true.
           InvalidRegex = InvalidRegex: Pattern value ''{0}'' is not a valid 
regular expression. The reported error was: ''{1}''.
           maxOccurLimit = Current configuration of the parser doesn''t allow 
the expansion of a content model for a complex type to contain more than {0} 
nodes.
  -        PublicSystemOnNotation = PublicSystemOnNotation: At least one of 
''public'' and ''system'' must appear in element ''notation''.
  +        PublicSystemOnNotation = PublicSystemOnNotation: At least one of 
'public' and 'system' must appear in element 'notation'.
           SchemaLocation = SchemaLocation: schemaLocation value = ''{0}'' must 
have even number of URI''s.
           TargetNamespace.1 = TargetNamespace.1: Expecting namespace ''{0}'', 
but the target namespace of the schema document is ''{1}''.
           TargetNamespace.2 = TargetNamespace.2: Expecting no namespace, but 
the schema document has a target namespace of ''{1}''.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to