MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSchemaCheckCTComponent

Function xmlSchemaCheckCTComponent

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:16580–16596  ·  view source on GitHub ↗

* xmlSchemaCheckCTComponent: * @ctxt: the schema parser context * @type: the complex type definition * * (3.4.6) Constraints on Complex Type Definition Schema Components * * Returns 0 if the constraints are satisfied, a positive * error code if not and -1 if an internal error occurred. */

Source from the content-addressed store, hash-verified

16578 * error code if not and -1 if an internal error occurred.
16579 */
16580static int
16581xmlSchemaCheckCTComponent(xmlSchemaParserCtxtPtr ctxt,
16582 xmlSchemaTypePtr type)
16583{
16584 int ret;
16585 /*
16586 * Complex Type Definition Properties Correct
16587 */
16588 ret = xmlSchemaCheckCTPropsCorrect(ctxt, type);
16589 if (ret != 0)
16590 return (ret);
16591 if (WXS_IS_EXTENSION(type))
16592 ret = xmlSchemaCheckCOSCTExtends(ctxt, type);
16593 else
16594 ret = xmlSchemaCheckDerivationOKRestriction(ctxt, type);
16595 return (ret);
16596}
16597
16598/**
16599 * xmlSchemaCheckSRCCT:

Callers 1

Tested by

no test coverage detected