private void handleComplexTypeError(String messageId,Object[] args, Element e) { if (messageId!=null) { reportSchemaError(messageId, args, e); } // // Mock up the typeInfo structure so that there won't be problems during // validation // fBaseType = SchemaGrammar.getXSAnyType(fSchemaHandler.fSchemaVersion); fContentType = XSComplexTypeDecl.CONTENTTYPE_MIXED; fXSSimpleType = null; fParticle = getErrorContent(); // REVISIT: do we need to remove all attribute uses already added into // the attribute group? maybe it's ok to leave them there. -SG fAttrGrp.fAttributeWC = getErrorWildcard(); }
xpathDefaultNamespace = fSymbolTable.addSymbol(xpathDefaultNamespace); } catch (InvalidDatatypeValueException ide) { reportSchemaError("cvc-datatype-valid.1.2.3", new Object[] {xpathDefaultNamespace, "anyURI | ##defaultNamespace | ##targetNamespace | ##local"}, assertElement);
reportSchemaError("s4s-elt-invalid-content.1", new Object[]{SchemaSymbols.ELT_OPENCONTENT,SchemaSymbols.ELT_ANNOTATION}, child); reportSchemaError("src-ct.6", new Object[]{fName}, elmNode); if (!childName.equals(SchemaSymbols.ELT_ANY) || DOMUtil.getNextSiblingElement(child) != null) { reportSchemaError("s4s-elt-must-match.1", new Object[]{SchemaSymbols.ELT_OPENCONTENT, "(annotation?, any?)", childName}, child); fAttrChecker.returnAttrArray(attrValues, schemaDoc); reportSchemaError("s4s-att-not-allowed", new Object[]{DOMUtil.getLocalName(elmNode)+"=>"+SchemaSymbols.ELT_ANY, SchemaSymbols.ATT_MINOCCURS+"|"+SchemaSymbols.ATT_MAXOCCURS}, child); if (ocMode == XSOpenContentDecl.MODE_NONE) { ocDecl.fWildcard = null; reportSchemaError("src-ct11.3", new Object[]{fName}, elmNode);
reportSchemaError("s4s-elt-invalid-content.1", new Object[] { DOMUtil.getLocalName(assertElement), DOMUtil.getLocalName(childNode) }, childNode); reportSchemaError("src-assert.3.13.1", new Object[] { DOMUtil.getLocalName(assertElement), XS11TypeHelper.getSchemaTypeName(enclosingCT) }, assertElement);
reportSchemaError("ct-props-correct.4", new Object[]{typeName, oneAttrUse.fAttrDecl.getName()}, elem);
reportSchemaError("s4s-att-must-appear", new Object[]{SchemaSymbols.ELT_COMPLEXTYPE, SchemaSymbols.ATT_NAME}, complexTypeNode); type = null; } else {
fXSSimpleType.applyFacets(facetData, presentFacets, fixedFacets, fValidationState); }catch(InvalidDatatypeFacetException ex){ reportSchemaError(ex.getKey(), ex.getArgs(), simpleContent);