Lines Matching defs:cur

722  * @cur:  the current include node
728 xmlDocPtr doc, xmlNodePtr cur)
754 ctxt->includes[2 * ctxt->nbIncludes] = cur;
846 xmlNodePtr cur;
879 cur = rule->children;
880 NEXT_SCHEMATRON(cur);
881 while (cur != NULL) {
882 if (IS_SCHEMATRON(cur, "assert")) {
884 test = xmlGetNoNsProp(cur, BAD_CAST "test");
886 xmlSchematronPErr(ctxt, cur,
891 xmlSchematronPErr(ctxt, cur,
898 report = xmlNodeGetContent(cur);
901 ruleptr, cur, test, report);
905 } else if (IS_SCHEMATRON(cur, "report")) {
907 test = xmlGetNoNsProp(cur, BAD_CAST "test");
909 xmlSchematronPErr(ctxt, cur,
914 xmlSchematronPErr(ctxt, cur,
921 report = xmlNodeGetContent(cur);
924 ruleptr, cur, test, report);
929 xmlSchematronPErr(ctxt, cur,
932 cur->name, NULL);
934 cur = cur->next;
935 NEXT_SCHEMATRON(cur);
954 xmlNodePtr cur;
971 cur = pat->children;
972 NEXT_SCHEMATRON(cur);
973 while (cur != NULL) {
974 if (IS_SCHEMATRON(cur, "rule")) {
975 xmlSchematronParseRule(ctxt, pattern, cur);
978 xmlSchematronPErr(ctxt, cur,
980 "Expecting a rule element instead of %s", cur->name, NULL);
982 cur = cur->next;
983 NEXT_SCHEMATRON(cur);
996 * @cur: the include element
1003 xmlSchematronLoadInclude(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr cur)
1011 if ((ctxt == NULL) || (cur == NULL))
1014 href = xmlGetNoNsProp(cur, BAD_CAST "href");
1016 xmlSchematronPErr(ctxt, cur,
1019 return(cur->next);
1023 base = xmlNodeGetBase(cur->doc, cur);
1027 xmlSchematronPErr(ctxt, cur,
1035 xmlSchematronPErr(ctxt, cur,
1043 xmlSchematronPushInclude(ctxt, doc, cur);
1074 xmlNodePtr root, cur;
1150 cur = root->children;
1151 NEXT_SCHEMATRON(cur);
1152 if (IS_SCHEMATRON(cur, "title")) {
1153 xmlChar *title = xmlNodeGetContent(cur);
1158 cur = cur->next;
1159 NEXT_SCHEMATRON(cur);
1161 while (IS_SCHEMATRON(cur, "ns")) {
1162 xmlChar *prefix = xmlGetNoNsProp(cur, BAD_CAST "prefix");
1163 xmlChar *uri = xmlGetNoNsProp(cur, BAD_CAST "uri");
1165 xmlSchematronPErr(ctxt, cur,
1170 xmlSchematronPErr(ctxt, cur,
1183 cur = cur->next;
1184 NEXT_SCHEMATRON(cur);
1186 while (cur != NULL) {
1187 if (IS_SCHEMATRON(cur, "pattern")) {
1188 xmlSchematronParsePattern(ctxt, cur);
1191 xmlSchematronPErr(ctxt, cur,
1193 "Expecting a pattern element instead of %s", cur->name, NULL);
1195 cur = cur->next;
1196 NEXT_SCHEMATRON(cur);
1237 xmlNodePtr cur, const xmlChar *xpath) {
1241 if ((ctxt == NULL) || (cur == NULL) || (xpath == NULL))
1244 ctxt->xctxt->doc = cur->doc;
1245 ctxt->xctxt->node = cur;
1261 * @cur: the current node tested
1268 xmlNodePtr cur ATTRIBUTE_UNUSED,
1278 * @cur: the current node tested
1287 xmlNodePtr test, xmlNodePtr cur) {
1291 if ((test == NULL) || (cur == NULL))
1304 node = cur;
1306 node = xmlSchematronGetNode(ctxt, cur, path);
1308 node = cur;
1356 * @cur: the current node tested
1364 xmlSchematronTestPtr test, xmlNodePtr cur, int success) {
1365 if ((ctxt == NULL) || (cur == NULL) || (test == NULL))
1383 line = xmlGetLineNo(cur);
1384 path = xmlGetNodePath(cur);
1386 path = (xmlChar *) cur->name;
1392 report = xmlSchematronFormatReport(ctxt, test->node, cur);
1406 xmlSchematronReportOutput(ctxt, cur, &msg[0]);
1407 if ((path != NULL) && (path != (xmlChar *) cur->name))
1506 xmlSchematronNextNode(xmlNodePtr cur) {
1507 if (cur->children != NULL) {
1511 if (cur->children->type != XML_ENTITY_DECL) {
1512 cur = cur->children;
1516 if (cur->type != XML_DTD_NODE)
1517 return(cur);
1521 while (cur->next != NULL) {
1522 cur = cur->next;
1523 if ((cur->type != XML_ENTITY_DECL) &&
1524 (cur->type != XML_DTD_NODE))
1525 return(cur);
1529 cur = cur->parent;
1530 if (cur == NULL) break;
1531 if (cur->type == XML_DOCUMENT_NODE) return(NULL);
1532 if (cur->next != NULL) {
1533 cur = cur->next;
1534 return(cur);
1536 } while (cur != NULL);
1537 return(cur);
1545 * @cur: the current node in the instance
1553 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur)
1560 ctxt->xctxt->node = cur;
1600 xmlSchematronReportSuccess(ctxt, test, cur, !failed);
1618 xmlNodePtr cur, root;
1639 cur = root;
1640 while (cur != NULL) {
1643 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1646 xmlSchematronRunTest(ctxt, test, instance, cur);
1653 cur = xmlSchematronNextNode(cur);
1670 cur = root;
1671 while (cur != NULL) {
1674 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1677 xmlSchematronRunTest(ctxt, test, instance, cur);
1684 cur = xmlSchematronNextNode(cur);