* xmlXIncludeDoProcessRoot: * @ctxt: the XInclude processing context * @tree: the top of the tree to process * * Implement the XInclude substitution on the XML document @doc * * Returns 0 if no substitution were done, -1 if some processing failed * or the number of substitutions done. */
| 2213 | * or the number of substitutions done. |
| 2214 | */ |
| 2215 | static int |
| 2216 | xmlXIncludeDoProcessRoot(xmlXIncludeCtxtPtr ctxt, xmlNodePtr tree) { |
| 2217 | if ((tree == NULL) || (tree->type == XML_NAMESPACE_DECL)) |
| 2218 | return(-1); |
| 2219 | if (ctxt == NULL) |
| 2220 | return(-1); |
| 2221 | |
| 2222 | return(xmlXIncludeDoProcess(ctxt, tree)); |
| 2223 | } |
| 2224 | |
| 2225 | /** |
| 2226 | * xmlXIncludeGetLastError: |
no test coverage detected