Home | History | Annotate | Download | only in libxml2

Lines Matching defs:node

12  *        - multiple rules applying in a single pattern/node
47 #define IS_SCHEMATRON(node, elem) \
48 ((node != NULL) && (node->type == XML_ELEMENT_NODE ) && \
49 (node->ns != NULL) && \
50 (xmlStrEqual(node->name, (const xmlChar *) elem)) && \
51 ((xmlStrEqual(node->ns->href, xmlSchematronNs)) || \
52 (xmlStrEqual(node->ns->href, xmlOldSchematronNs))))
54 #define NEXT_SCHEMATRON(node) \
55 while (node != NULL) { \
56 if ((node->type == XML_ELEMENT_NODE ) && (node->ns != NULL) && \
57 ((xmlStrEqual(node->ns->href, xmlSchematronNs)) || \
58 (xmlStrEqual(node->ns->href, xmlOldSchematronNs)))) \
60 node = node->next; \
88 xmlNodePtr node; /* the node in the tree */
104 xmlNodePtr node; /* the node in the tree */
220 * @node: a context node
227 const char *extra, xmlNodePtr node)
231 __xmlSimpleError(XML_FROM_SCHEMASP, XML_ERR_NO_MEMORY, node, NULL,
238 * @node: the context node
247 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error,
260 __xmlRaiseError(schannel, channel, data, ctxt, node, XML_FROM_SCHEMASP,
268 * @node: a context node
275 const char *extra, xmlNodePtr node)
281 __xmlSimpleError(XML_FROM_SCHEMASV, XML_ERR_NO_MEMORY, node, NULL,
296 * @node: the node hosting the test
308 xmlNodePtr node, xmlChar *test, xmlChar *report)
313 if ((ctxt == NULL) || (rule == NULL) || (node == NULL) ||
322 xmlSchematronPErr(ctxt, node,
331 xmlSchematronPErrMemory(ctxt, "allocating schema test", node);
336 ret->node = node;
380 * @node: the node hosting the rule
390 xmlSchematronPatternPtr pat, xmlNodePtr node,
396 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) ||
406 xmlSchematronPErr(ctxt, node,
414 xmlSchematronPErrMemory(ctxt, "allocating schema rule", node);
418 ret->node = node;
474 * @node: the node hosting the pattern
483 xmlSchematronPtr schema, xmlNodePtr node, xmlChar *name)
487 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) || (name == NULL))
492 xmlSchematronPErrMemory(ctxt, "allocating schema pattern", node);
727 * @cur: the current include node
770 * Returns the node immediately following the include or NULL if the
842 * @rule: the rule node
952 * @pat: the pattern node
1005 * Returns the updated node pointer
1243 xmlNodePtr node = NULL;
1250 ctxt->xctxt->node = cur;
1257 node = ret->nodesetval->nodeTab[0];
1260 return(node);
1266 * @cur: the current node tested
1282 * @test: the test node
1283 * @cur: the current node tested
1294 xmlNodePtr child, node;
1309 node = cur;
1311 node = xmlSchematronGetNode(ctxt, cur, path);
1312 if (node == NULL)
1313 node = cur;
1317 if ((node->ns == NULL) || (node->ns->prefix == NULL))
1318 ret = xmlStrcat(ret, node->name);
1320 ret = xmlStrcat(ret, node->ns->prefix);
1322 ret = xmlStrcat(ret, node->name);
1361 * @cur: the current node tested
1396 if (test->node != NULL)
1397 report = xmlSchematronFormatReport(ctxt, test->node, cur);
1400 report = xmlStrdup((const xmlChar *) "node failed assert");
1402 report = xmlStrdup((const xmlChar *) "node failed report");
1593 * @cur: the current node in the instance
1608 ctxt->xctxt->node = cur;