Lines Matching defs:node
57 xmlNodePtr ref; /* the node making the reference in the source */
107 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node,
112 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
121 * @node: the context node
128 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
133 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
143 * @node: the context node
150 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
153 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
163 * @cur: the node
483 * @cur: the new node
485 * Add a new node to process to an XInclude context
507 xmlGenericError(xmlGenericErrorContext, "Add node\n");
751 * @txt: the new text node
798 * Node copy with specific semantic *
813 * Make a copy of the node while preserving the XInclude semantic
840 * Make a copy of the node list while preserving the XInclude semantic
870 * @cur: the node
903 * Build a node list tree copy of the XPointer result.
906 * The caller has to free the node tree.
938 * level is depth of the current node under consideration
942 * last is a pointer to the last node added to the output tree
985 /* single sub text node selection */
994 } else { /* ending node not a text node */
995 endLevel = level; /* remember the level of the end node */
997 /* last node - need to take care of properties + namespaces */
1044 } else { /* Not text node */
1100 * Skip to next node in document order
1116 * Build a node list tree copy of the XPointer result.
1120 * the caller has to free the node tree.
1394 * @nr: the xinclude node number
1693 xmlNodePtr node;
1698 * The base is only adjusted if "necessary", i.e. if the xinclude node
1705 * No xml:base on the xinclude node, so we check whether the
1722 node = ctxt->incTab[nr]->inc;
1723 while (node != NULL) {
1725 if (node->type == XML_ELEMENT_NODE) {
1726 curBase = xmlNodeGetBase(node->doc, node);
1729 xmlNodeSetBase(node, base);
1736 if (xmlStrEqual(curBase, node->doc->URL)) {
1737 xmlNodeSetBase(node, base);
1744 xmlBase = xmlGetNsProp(node,
1757 xmlNodeSetBase(node, relBase);
1766 node = node->next;
1787 * @nr: the xinclude node number
1796 xmlNodePtr node;
1847 node = xmlCopyNode(ctxt->txtTab[i], 1);
1896 node = xmlNewText(NULL);
1899 * Scan all chars from the resource and add the to the node
1929 xmlNodeAddContentLen(node, &content[i], l);
1936 xmlXIncludeAddTxt(ctxt, node, URL);
1943 ctxt->incTab[nr]->inc = node;
1951 * @fallback: the fallback node
1952 * @nr: the xinclude node number
1954 * Load the content of the fallback node, and store the result
2003 * @node: an XInclude node
2011 xmlXIncludePreProcessNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2012 xmlXIncludeAddNode(ctxt, node);
2019 * @nr: the node number
2021 * Find and load the infoset replacement for the given node.
2176 * @nr: the node number
2178 * Inplement the infoset replacement for the given node
2244 * Change the current node as an XInclude start one, and add an
2252 "failed to build node\n", NULL);
2276 * @node: an XInclude node
2278 * test if the node is an XInclude node
2283 xmlXIncludeTestNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2284 if (node == NULL)
2286 if (node->type != XML_ELEMENT_NODE)
2288 if (node->ns == NULL)
2290 if ((xmlStrEqual(node->ns->href, XINCLUDE_NS)) ||
2291 (xmlStrEqual(node->ns->href, XINCLUDE_OLD_NS))) {
2292 if (xmlStrEqual(node->ns->href, XINCLUDE_OLD_NS)) {
2295 xmlXIncludeWarn(ctxt, node, XML_XINCLUDE_DEPRECATED_NS,
2302 if (xmlStrEqual(node->name, XINCLUDE_NODE)) {
2303 xmlNodePtr child = node->children;
2312 xmlXIncludeErr(ctxt, node,
2325 xmlXIncludeErr(ctxt, node, XML_XINCLUDE_FALLBACKS_IN_INCLUDE,
2332 if (xmlStrEqual(node->name, XINCLUDE_FALLBACK)) {
2333 if ((node->parent == NULL) ||
2334 (node->parent->type != XML_ELEMENT_NODE) ||
2335 (node->parent->ns == NULL) ||
2336 ((!xmlStrEqual(node->parent->ns->href, XINCLUDE_NS)) &&
2337 (!xmlStrEqual(node->parent->ns->href, XINCLUDE_OLD_NS))) ||
2338 (!xmlStrEqual(node->parent->name, XINCLUDE_NODE))) {
2339 xmlXIncludeErr(ctxt, node,
2464 * @tree: an XML node
2469 * Implement the XInclude substitution on the XML node @tree
2553 * @tree: a node in an XML document
2584 * @tree: a node in an XML document
2599 * @node: a node in an XML document
2608 xmlXIncludeProcessNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2611 if ((node == NULL) || (node->type == XML_NAMESPACE_DECL) ||
2612 (node->doc == NULL) || (ctxt == NULL))
2614 ret = xmlXIncludeDoProcess(ctxt, node->doc, node);