Home | History | Annotate | Download | only in libxml2

Lines Matching refs:cur

729  * @cur:  the current include node
735 xmlDocPtr doc, xmlNodePtr cur)
761 ctxt->includes[2 * ctxt->nbIncludes] = cur;
853 xmlNodePtr cur;
886 cur = rule->children;
887 NEXT_SCHEMATRON(cur);
888 while (cur != NULL) {
889 if (IS_SCHEMATRON(cur, "assert")) {
891 test = xmlGetNoNsProp(cur, BAD_CAST "test");
893 xmlSchematronPErr(ctxt, cur,
898 xmlSchematronPErr(ctxt, cur,
905 report = xmlNodeGetContent(cur);
908 ruleptr, cur, test, report);
912 } else if (IS_SCHEMATRON(cur, "report")) {
914 test = xmlGetNoNsProp(cur, BAD_CAST "test");
916 xmlSchematronPErr(ctxt, cur,
921 xmlSchematronPErr(ctxt, cur,
928 report = xmlNodeGetContent(cur);
931 ruleptr, cur, test, report);
936 xmlSchematronPErr(ctxt, cur,
939 cur->name, NULL);
941 cur = cur->next;
942 NEXT_SCHEMATRON(cur);
961 xmlNodePtr cur;
978 cur = pat->children;
979 NEXT_SCHEMATRON(cur);
980 while (cur != NULL) {
981 if (IS_SCHEMATRON(cur, "rule")) {
982 xmlSchematronParseRule(ctxt, pattern, cur);
985 xmlSchematronPErr(ctxt, cur,
987 "Expecting a rule element instead of %s", cur->name, NULL);
989 cur = cur->next;
990 NEXT_SCHEMATRON(cur);
1003 * @cur: the include element
1010 xmlSchematronLoadInclude(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr cur)
1018 if ((ctxt == NULL) || (cur == NULL))
1021 href = xmlGetNoNsProp(cur, BAD_CAST "href");
1023 xmlSchematronPErr(ctxt, cur,
1026 return(cur->next);
1030 base = xmlNodeGetBase(cur->doc, cur);
1034 xmlSchematronPErr(ctxt, cur,
1042 xmlSchematronPErr(ctxt, cur,
1050 xmlSchematronPushInclude(ctxt, doc, cur);
1081 xmlNodePtr root, cur;
1157 cur = root->children;
1158 NEXT_SCHEMATRON(cur);
1159 if (IS_SCHEMATRON(cur, "title")) {
1160 xmlChar *title = xmlNodeGetContent(cur);
1165 cur = cur->next;
1166 NEXT_SCHEMATRON(cur);
1168 while (IS_SCHEMATRON(cur, "ns")) {
1169 xmlChar *prefix = xmlGetNoNsProp(cur, BAD_CAST "prefix");
1170 xmlChar *uri = xmlGetNoNsProp(cur, BAD_CAST "uri");
1172 xmlSchematronPErr(ctxt, cur,
1177 xmlSchematronPErr(ctxt, cur,
1190 cur = cur->next;
1191 NEXT_SCHEMATRON(cur);
1193 while (cur != NULL) {
1194 if (IS_SCHEMATRON(cur, "pattern")) {
1195 xmlSchematronParsePattern(ctxt, cur);
1198 xmlSchematronPErr(ctxt, cur,
1200 "Expecting a pattern element instead of %s", cur->name, NULL);
1202 curcur->next;
1203 NEXT_SCHEMATRON(cur);
1244 xmlNodePtr cur, const xmlChar *xpath) {
1248 if ((ctxt == NULL) || (cur == NULL) || (xpath == NULL))
1251 ctxt->xctxt->doc = cur->doc;
1252 ctxt->xctxt->node = cur;
1268 * @cur: the current node tested
1275 xmlNodePtr cur ATTRIBUTE_UNUSED,
1285 * @cur: the current node tested
1294 xmlNodePtr test, xmlNodePtr cur) {
1298 if ((test == NULL) || (cur == NULL))
1311 node = cur;
1313 node = xmlSchematronGetNode(ctxt, cur, path);
1315 node = cur;
1363 * @cur: the current node tested
1371 xmlSchematronTestPtr test, xmlNodePtr cur, xmlSchematronPatternPtr pattern, int success) {
1372 if ((ctxt == NULL) || (cur == NULL) || (test == NULL))
1390 line = xmlGetLineNo(cur);
1391 path = xmlGetNodePath(cur);
1393 path = (xmlChar *) cur->name;
1399 report = xmlSchematronFormatReport(ctxt, test->node, cur);
1424 NULL, cur, XML_FROM_SCHEMATRONV,
1432 xmlSchematronReportOutput(ctxt, cur, &msg[0]);
1437 if ((path != NULL) && (path != (xmlChar *) cur->name))
1556 xmlSchematronNextNode(xmlNodePtr cur) {
1557 if (cur->children != NULL) {
1561 if (cur->children->type != XML_ENTITY_DECL) {
1562 cur = cur->children;
1566 if (cur->type != XML_DTD_NODE)
1567 return(cur);
1571 while (cur->next != NULL) {
1572 cur = cur->next;
1573 if ((cur->type != XML_ENTITY_DECL) &&
1574 (cur->type != XML_DTD_NODE))
1575 return(cur);
1579 cur = cur->parent;
1580 if (cur == NULL) break;
1581 if (cur->type == XML_DOCUMENT_NODE) return(NULL);
1582 if (cur->next != NULL) {
1583 cur = cur->next;
1584 return(cur);
1586 } while (cur != NULL);
1587 return(cur);
1595 * @cur: the current node in the instance
1603 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur, xmlSchematronPatternPtr pattern)
1610 ctxt->xctxt->node = cur;
1650 xmlSchematronReportSuccess(ctxt, test, cur, pattern, !failed);
1668 xmlNodePtr cur, root;
1689 cur = root;
1690 while (cur != NULL) {
1693 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1696 xmlSchematronRunTest(ctxt, test, instance, cur, (xmlSchematronPatternPtr)rule->pattern);
1703 cur = xmlSchematronNextNode(cur);
1720 cur = root;
1721 while (cur != NULL) {
1724 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1727 xmlSchematronRunTest(ctxt, test, instance, cur, pattern);
1734 cur = xmlSchematronNextNode(cur);