Lines Matching refs:cur
238 getNext(xmlNodePtr cur, const char *xpath) {
243 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL))
245 ctxtXPath->doc = cur->doc;
246 ctxtXPath->node = cur;
266 getString(xmlNodePtr cur, const char *xpath) {
271 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL))
273 ctxtXPath->doc = cur->doc;
274 ctxtXPath->node = cur;
299 xsdIncorectTestCase(xmlNodePtr cur) {
306 cur = getNext(cur, "./incorrect[1]");
307 if (cur == NULL) {
311 test = getNext(cur, "./*");
314 xmlGetLineNo(cur));
351 xmlGetLineNo(cur), xmlMemUsed() - memt);
420 xmlNodePtr test, tmp, cur;
441 cur = getNext(tst, "./correct[1]");
442 if (cur == NULL) {
446 test = getNext(cur, "./*");
449 xmlGetLineNo(cur));
484 tmp = getNext(cur, "following-sibling::valid[1]");
544 tmp = getNext(cur, "following-sibling::invalid[1]");
605 xmlGetLineNo(cur), xmlMemUsed() - memt);
612 xsdTestSuite(xmlNodePtr cur) {
614 xmlChar *doc = getString(cur, "string(documentation)");
621 cur = getNext(cur, "./testCase[1]");
622 while (cur != NULL) {
623 xsdTestCase(cur);
624 cur = getNext(cur, "following-sibling::testCase[1]");
633 xmlNodePtr cur;
644 cur = xmlDocGetRootElement(doc);
645 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
651 cur = getNext(cur, "./testSuite[1]");
652 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
657 while (cur != NULL) {
658 xsdTestSuite(cur);
659 cur = getNext(cur, "following-sibling::testSuite[1]");
669 rngTestSuite(xmlNodePtr cur) {
671 xmlChar *doc = getString(cur, "string(documentation)");
677 doc = getString(cur, "string(section)");
684 cur = getNext(cur, "./testSuite[1]");
685 while (cur != NULL) {
686 xsdTestSuite(cur);
687 cur = getNext(cur, "following-sibling::testSuite[1]");
696 xmlNodePtr cur;
707 cur = xmlDocGetRootElement(doc);
708 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
714 cur = getNext(cur, "./testSuite[1]");
715 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
720 while (cur != NULL) {
721 rngTestSuite(cur);
722 cur = getNext(cur, "following-sibling::testSuite[1]");
734 xmlNodePtr cur;
745 cur = xmlDocGetRootElement(doc);
746 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
752 cur = getNext(cur, "./testSuite[1]");
753 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) {
758 while (cur != NULL) {
759 xsdTestSuite(cur);
760 cur = getNext(cur, "following-sibling::testSuite[1]");
776 xstcTestInstance(xmlNodePtr cur, xmlSchemaPtr schemas,
788 href = getString(cur,
792 xmlGetLineNo(cur));
800 xmlGetLineNo(cur), href);
806 xmlGetLineNo(cur), path);
810 validity = getString(cur,
814 xmlGetLineNo(cur));
853 xmlGetLineNo(cur), validity);
867 xmlGetLineNo(cur), xmlMemUsed() - mem);
874 xstcTestGroup(xmlNodePtr cur, const char *base) {
886 href = getString(cur,
890 xmlGetLineNo(cur));
897 xmlGetLineNo(cur), href);
903 xmlGetLineNo(cur), path);
907 validity = getString(cur,
911 xmlGetLineNo(cur));
938 instance = getNext(cur, "./ts:instanceTest[1]");
976 xmlGetLineNo(cur), validity);
989 xmlGetLineNo(cur), path, xmlMemUsed() - mem);
998 xmlNodePtr cur;
1009 cur = xmlDocGetRootElement(doc);
1010 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSet"))) {
1014 contributor = xmlGetProp(cur, BAD_CAST "contributor");
1018 name = xmlGetProp(cur, BAD_CAST "name");
1026 cur = getNext(cur, "./ts:testGroup[1]");
1027 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testGroup"))) {
1032 while (cur != NULL) {
1033 xstcTestGroup(cur, base);
1034 cur = getNext(cur, "following-sibling::ts:testGroup[1]");