* 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 */
| 1934 | * Returns -1 in case of errors, otherwise 0 |
| 1935 | */ |
| 1936 | static int |
| 1937 | xmlSchematronUnregisterVariables(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: |
no test coverage detected