Home | History | Annotate | Download | only in libxml2

Lines Matching refs:cur

727  * @cur:  the current include node
733 xmlDocPtr doc, xmlNodePtr cur)
759 ctxt->includes[2 * ctxt->nbIncludes] = cur;
851 xmlNodePtr cur;
884 cur = rule->children;
885 NEXT_SCHEMATRON(cur);
886 while (cur != NULL) {
887 if (IS_SCHEMATRON(cur, "assert")) {
889 test = xmlGetNoNsProp(cur, BAD_CAST "test");
891 xmlSchematronPErr(ctxt, cur,
896 xmlSchematronPErr(ctxt, cur,
903 report = xmlNodeGetContent(cur);
906 ruleptr, cur, test, report);
910 } else if (IS_SCHEMATRON(cur, "report")) {
912 test = xmlGetNoNsProp(cur, BAD_CAST "test");
914 xmlSchematronPErr(ctxt, cur,
919 xmlSchematronPErr(ctxt, cur,
926 report = xmlNodeGetContent(cur);
929 ruleptr, cur, test, report);
934 xmlSchematronPErr(ctxt, cur,
937 cur->name, NULL);
939 cur = cur->next;
940 NEXT_SCHEMATRON(cur);
959 xmlNodePtr cur;
976 cur = pat->children;
977 NEXT_SCHEMATRON(cur);
978 while (cur != NULL) {
979 if (IS_SCHEMATRON(cur, "rule")) {
980 xmlSchematronParseRule(ctxt, pattern, cur);
983 xmlSchematronPErr(ctxt, cur,
985 "Expecting a rule element instead of %s", cur->name, NULL);
987 cur = cur->next;
988 NEXT_SCHEMATRON(cur);
1001 * @cur: the include element
1008 xmlSchematronLoadInclude(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr cur)
1016 if ((ctxt == NULL) || (cur == NULL))
1019 href = xmlGetNoNsProp(cur, BAD_CAST "href");
1021 xmlSchematronPErr(ctxt, cur,
1024 return(cur->next);
1028 base = xmlNodeGetBase(cur->doc, cur);
1032 xmlSchematronPErr(ctxt, cur,
1040 xmlSchematronPErr(ctxt, cur,
1048 xmlSchematronPushInclude(ctxt, doc, cur);
1079 xmlNodePtr root, cur;
1155 cur = root->children;
1156 NEXT_SCHEMATRON(cur);
1157 if (IS_SCHEMATRON(cur, "title")) {
1158 xmlChar *title = xmlNodeGetContent(cur);
1163 cur = cur->next;
1164 NEXT_SCHEMATRON(cur);
1166 while (IS_SCHEMATRON(cur, "ns")) {
1167 xmlChar *prefix = xmlGetNoNsProp(cur, BAD_CAST "prefix");
1168 xmlChar *uri = xmlGetNoNsProp(cur, BAD_CAST "uri");
1170 xmlSchematronPErr(ctxt, cur,
1175 xmlSchematronPErr(ctxt, cur,
1188 cur = cur->next;
1189 NEXT_SCHEMATRON(cur);
1191 while (cur != NULL) {
1192 if (IS_SCHEMATRON(cur, "pattern")) {
1193 xmlSchematronParsePattern(ctxt, cur);
1196 xmlSchematronPErr(ctxt, cur,
1198 "Expecting a pattern element instead of %s", cur->name, NULL);
1200 cur = cur->next;
1201 NEXT_SCHEMATRON(cur);
1242 xmlNodePtr cur, const xmlChar *xpath) {
1246 if ((ctxt == NULL) || (cur == NULL) || (xpath == NULL))
1249 ctxt->xctxt->doc = cur->doc;
1250 ctxt->xctxt->node = cur;
1266 * @cur: the current node tested
1273 xmlNodePtr cur ATTRIBUTE_UNUSED,
1283 * @cur: the current node tested
1292 xmlNodePtr test, xmlNodePtr cur) {
1296 if ((test == NULL) || (cur == NULL))
1309 node = cur;
1311 node = xmlSchematronGetNode(ctxt, cur, path);
1313 node = cur;
1361 * @cur: the current node tested
1369 xmlSchematronTestPtr test, xmlNodePtr cur, xmlSchematronPatternPtr pattern, int success) {
1370 if ((ctxt == NULL) || (cur == NULL) || (test == NULL))
1388 line = xmlGetLineNo(cur);
1389 path = xmlGetNodePath(cur);
1391 path = (xmlChar *) cur->name;
1397 report = xmlSchematronFormatReport(ctxt, test->node, cur);
1422 NULL, cur, XML_FROM_SCHEMATRONV,
1430 xmlSchematronReportOutput(ctxt, cur, &msg[0]);
1435 if ((path != NULL) && (path != (xmlChar *) cur->name))
1554 xmlSchematronNextNode(xmlNodePtr cur) {
1555 if (cur->children != NULL) {
1559 if (cur->children->type != XML_ENTITY_DECL) {
1560 cur = cur->children;
1564 if (cur->type != XML_DTD_NODE)
1565 return(cur);
1569 while (cur->next != NULL) {
1570 cur = cur->next;
1571 if ((cur->type != XML_ENTITY_DECL) &&
1572 (cur->type != XML_DTD_NODE))
1573 return(cur);
1577 cur = cur->parent;
1578 if (cur == NULL) break;
1579 if (cur->type == XML_DOCUMENT_NODE) return(NULL);
1580 if (cur->next != NULL) {
1581 cur = cur->next;
1582 return(cur);
1584 } while (cur != NULL);
1585 return(cur);
1593 * @cur: the current node in the instance
1601 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur, xmlSchematronPatternPtr pattern)
1608 ctxt->xctxt->node = cur;
1648 xmlSchematronReportSuccess(ctxt, test, cur, pattern, !failed);
1666 xmlNodePtr cur, root;
1687 cur = root;
1688 while (cur != NULL) {
1691 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1694 xmlSchematronRunTest(ctxt, test, instance, cur, (xmlSchematronPatternPtr)rule->pattern);
1701 cur = xmlSchematronNextNode(cur);
1718 cur = root;
1719 while (cur != NULL) {
1722 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1725 xmlSchematronRunTest(ctxt, test, instance, cur, pattern);
1732 cur = xmlSchematronNextNode(cur);