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

Function xmlSchematronUnregisterVariables

ThirdParty/libxml2/vtklibxml2/schematron.c:1936–1950  ·  view source on GitHub ↗

* xmlSchematronUnregisterVariables: * @ctxt: the schema validation context * @let: the list of let variables * * Unregisters a list of let variables from the context * * Returns -1 in case of errors, otherwise 0 */

Source from the content-addressed store, hash-verified

1934 * Returns -1 in case of errors, otherwise 0
1935 */
1936static int
1937xmlSchematronUnregisterVariables(xmlSchematronValidCtxtPtr vctxt,
1938 xmlXPathContextPtr ctxt,
1939 xmlSchematronLetPtr let)
1940{
1941 while (let != NULL) {
1942 if (xmlXPathRegisterVariableNS(ctxt, let->name, NULL, NULL)) {
1943 xmlSchematronVErr(vctxt, XML_ERR_INTERNAL_ERROR,
1944 "Unregistering a let variable failed\n", NULL);
1945 return -1;
1946 }
1947 let = let->next;
1948 }
1949 return 0;
1950}
1951
1952/**
1953 * xmlSchematronValidateDoc:

Callers 1

xmlSchematronValidateDocFunction · 0.85

Calls 1

Tested by

no test coverage detected