Lines Matching defs:node
56 xmlNodePtr ref; /* the node making the reference in the source */
106 xmlXIncludeErrMemory(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node,
111 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
120 * @node: the context node
127 xmlXIncludeErr(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
132 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
142 * @node: the context node
149 xmlXIncludeWarn(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node, int error,
152 __xmlRaiseError(NULL, NULL, NULL, ctxt, node, XML_FROM_XINCLUDE,
162 * @cur: the node
482 * @cur: the new node
484 * Add a new node to process to an XInclude context
506 xmlGenericError(xmlGenericErrorContext, "Add node\n");
750 * @txt: the new text node
797 * Node copy with specific semantic *
808 * Make a copy of the node while preserving the XInclude semantic
832 * Make a copy of the node list while preserving the XInclude semantic
862 * @cur: the node
895 * Build a node list tree copy of the XPointer result.
898 * The caller has to free the node tree.
928 * level is depth of the current node under consideration
932 * last is a pointer to the last node added to the output tree
976 /* single sub text node selection */
985 } else { /* ending node not a text node */
986 endLevel = level; /* remember the level of the end node */
988 /* last node - need to take care of properties + namespaces */
1035 } else { /* Not text node */
1091 * Skip to next node in document order
1107 * Build a node list tree copy of the XPointer result.
1111 * the caller has to free the node tree.
1385 * @nr: the xinclude node number
1684 xmlNodePtr node;
1689 * The base is only adjusted if "necessary", i.e. if the xinclude node
1696 * No xml:base on the xinclude node, so we check whether the
1713 node = ctxt->incTab[nr]->inc;
1714 while (node != NULL) {
1716 if (node->type == XML_ELEMENT_NODE) {
1717 curBase = xmlNodeGetBase(node->doc, node);
1720 xmlNodeSetBase(node, base);
1727 if (xmlStrEqual(curBase, node->doc->URL)) {
1728 xmlNodeSetBase(node, base);
1735 xmlBase = xmlGetNsProp(node,
1748 xmlNodeSetBase(node, relBase);
1757 node = node->next;
1778 * @nr: the xinclude node number
1787 xmlNodePtr node;
1835 node = xmlCopyNode(ctxt->txtTab[i], 1);
1872 node = xmlNewText(NULL);
1875 node
1896 xmlNodeAddContentLen(node, &content[i], l);
1903 xmlXIncludeAddTxt(ctxt, node, URL);
1909 ctxt->incTab[nr]->inc = node;
1917 * @fallback: the fallback node
1918 * @nr: the xinclude node number
1920 * Load the content of the fallback node, and store the result
1968 * @node: an XInclude node
1976 xmlXIncludePreProcessNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
1977 xmlXIncludeAddNode(ctxt, node);
1984 * @nr: the node number
1986 * Find and load the infoset replacement for the given node.
2141 * @nr: the node number
2143 * Inplement the infoset replacement for the given node
2209 * Change the current node as an XInclude start one, and add an
2217 "failed to build node\n", NULL);
2241 * @node: an XInclude node
2243 * test if the node is an XInclude node
2248 xmlXIncludeTestNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2249 if (node == NULL)
2251 if (node->type != XML_ELEMENT_NODE)
2253 if (node->ns == NULL)
2255 if ((xmlStrEqual(node->ns->href, XINCLUDE_NS)) ||
2256 (xmlStrEqual(node->ns->href, XINCLUDE_OLD_NS))) {
2257 if (xmlStrEqual(node->ns->href, XINCLUDE_OLD_NS)) {
2260 xmlXIncludeWarn(ctxt, node, XML_XINCLUDE_DEPRECATED_NS,
2267 if (xmlStrEqual(node->name, XINCLUDE_NODE)) {
2268 xmlNodePtr child = node->children;
2277 xmlXIncludeErr(ctxt, node,
2290 xmlXIncludeErr(ctxt, node, XML_XINCLUDE_FALLBACKS_IN_INCLUDE,
2297 if (xmlStrEqual(node->name, XINCLUDE_FALLBACK)) {
2298 if ((node->parent == NULL) ||
2299 (node->parent->type != XML_ELEMENT_NODE) ||
2300 (node->parent->ns == NULL) ||
2301 ((!xmlStrEqual(node->parent->ns->href, XINCLUDE_NS)) &&
2302 (!xmlStrEqual(node->parent->ns->href, XINCLUDE_OLD_NS))) ||
2303 (!xmlStrEqual(node->parent->name, XINCLUDE_NODE))) {
2304 xmlXIncludeErr(ctxt, node,
2495 * @tree: a node in an XML document
2525 * @tree: a node in an XML document
2540 * @node: a node in an XML document
2549 xmlXIncludeProcessNode(xmlXIncludeCtxtPtr ctxt, xmlNodePtr node) {
2552 if ((node == NULL) || (node->doc == NULL) || (ctxt == NULL))
2554 ret = xmlXIncludeDoProcess(ctxt, node->doc, node);