[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-cvs
Subject:    cvs commit: xml-xmlbeans/v2/src/typeimpl/org/apache/xmlbeans/impl/schema StscTranslator.java
From:       daveremy () apache ! org
Date:       2004-01-24 20:37:40
Message-ID: 20040124203740.29179.qmail () minotaur ! apache ! org
[Download RAW message or body]

daveremy    2004/01/24 12:37:40

  Modified:    v2/src/typeimpl/org/apache/xmlbeans/impl/schema
                        StscTranslator.java
  Log:
  change an error to a just warning: element reference with nillable attribute
  
  Revision  Changes    Path
  1.4       +5 -5      \
xml-xmlbeans/v2/src/typeimpl/org/apache/xmlbeans/impl/schema/StscTranslator.java  
  Index: StscTranslator.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/typeimpl/org/apache/xmlbeans/impl/schema/StscTranslator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StscTranslator.java	24 Jan 2004 01:01:48 -0000	1.3
  +++ StscTranslator.java	24 Jan 2004 20:37:40 -0000	1.4
  @@ -527,31 +527,31 @@
               
               if (xsdElt.sizeOfKeyArray() > 0 || xsdElt.sizeOfKeyrefArray() > 0 || \
xsdElt.sizeOfUniqueArray() > 0)  {
  -                state.error("Element reference cannot also contain key, keyref, or \
unique", XmlErrorContext.GENERIC_ERROR, xsdElt);  +                \
state.warning("Element reference cannot also contain key, keyref, or unique", \
XmlErrorContext.GENERIC_ERROR, xsdElt);  // recovery: ignore
               }
               
               if (xsdElt.isSetDefault())
               {
  -                state.error("Element with reference to '" + ref.getLocalPart() + \
"' cannot also specify default", XmlErrorContext.GENERIC_ERROR, xsdElt);  +           \
state.warning("Element with reference to '" + ref.getLocalPart() + "' cannot also \
specify default", XmlErrorContext.GENERIC_ERROR, xsdElt);  // recovery: ignore
               }
               
               if (xsdElt.isSetFixed())
               {
  -                state.error("Element with reference to '" + ref.getLocalPart() + \
"' cannot also specify fixed", XmlErrorContext.GENERIC_ERROR, xsdElt);  +             \
state.warning("Element with reference to '" + ref.getLocalPart() + "' cannot also \
specify fixed", XmlErrorContext.GENERIC_ERROR, xsdElt);  // recovery: ignore
               }
               
               if (xsdElt.isSetBlock())
               {
  -                state.error("Element with reference to '" + ref.getLocalPart() + \
"' cannot also specify block", XmlErrorContext.GENERIC_ERROR, xsdElt);  +             \
state.warning("Element with reference to '" + ref.getLocalPart() + "' cannot also \
specify block", XmlErrorContext.GENERIC_ERROR, xsdElt);  // recovery: ignore
               }
               
               if (xsdElt.isSetNillable())
               {
  -                state.error("Element with reference to '" + ref.getLocalPart() + \
"' cannot also specify nillable", XmlErrorContext.GENERIC_ERROR, xsdElt);  +          \
state.warning("Element with reference to '" + ref.getLocalPart() + "' cannot also \
specify nillable", XmlErrorContext.GENERIC_ERROR, xsdElt);  // recovery: ignore
               }
               
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic