Lines Matching defs:output
42 FILE *output; /* the output file */
64 ctxt->output = stdout;
142 if ((ctxt->output != NULL) && (ctxt->depth > 0)) {
144 fprintf(ctxt->output, &ctxt->shift[100 - 2 * ctxt->depth]);
146 fprintf(ctxt->output, ctxt->shift);
427 fprintf(ctxt->output, "(NULL)");
434 fputc(' ', ctxt->output);
436 fprintf(ctxt->output, "#%X", str[i]);
438 fputc(str[i], ctxt->output);
439 fprintf(ctxt->output, "...");
449 fprintf(ctxt->output, "DTD node is NULL\n");
460 fprintf(ctxt->output, "DTD(%s)", (char *) dtd->name);
462 fprintf(ctxt->output, "DTD");
464 fprintf(ctxt->output, ", PUBLIC %s", (char *) dtd->ExternalID);
466 fprintf(ctxt->output, ", SYSTEM %s", (char *) dtd->SystemID);
467 fprintf(ctxt->output, "\n");
482 fprintf(ctxt->output, "Attribute declaration is NULL\n");
492 fprintf(ctxt->output, "ATTRDECL(%s)", (char *) attr->name);
498 fprintf(ctxt->output, " for %s", (char *) attr->elem);
505 fprintf(ctxt->output, " CDATA");
508 fprintf(ctxt->output, " ID");
511 fprintf(ctxt->output, " IDREF");
514 fprintf(ctxt->output, " IDREFS");
517 fprintf(ctxt->output, " ENTITY");
520 fprintf(ctxt->output, " ENTITIES");
523 fprintf(ctxt->output, " NMTOKEN");
526 fprintf(ctxt->output, " NMTOKENS");
529 fprintf(ctxt->output, " ENUMERATION");
532 fprintf(ctxt->output, " NOTATION ");
541 fprintf(ctxt->output, "|%s", (char *) cur->name);
543 fprintf(ctxt->output, " (%s", (char *) cur->name);
549 fprintf(ctxt->output, ")");
551 fprintf(ctxt->output, "...)");
557 fprintf(ctxt->output, " REQUIRED");
560 fprintf(ctxt->output, " IMPLIED");
563 fprintf(ctxt->output, " FIXED");
567 fprintf(ctxt->output, "\"");
569 fprintf(ctxt->output, "\"");
571 fprintf(ctxt->output, "\n");
587 fprintf(ctxt->output, "Element declaration is NULL\n");
597 fprintf(ctxt->output, "ELEMDECL(");
599 fprintf(ctxt->output, ")");
607 fprintf(ctxt->output, ", UNDEFINED");
610 fprintf(ctxt->output, ", EMPTY");
613 fprintf(ctxt->output, ", ANY");
616 fprintf(ctxt->output, ", MIXED ");
619 fprintf(ctxt->output, ", MIXED ");
628 fprintf(ctxt->output, "%s", buf);
630 fprintf(ctxt->output, "\n");
646 fprintf(ctxt->output, "Entity declaration is NULL\n");
656 fprintf(ctxt->output, "ENTITYDECL(");
658 fprintf(ctxt->output, ")");
666 fprintf(ctxt->output, ", internal\n");
669 fprintf(ctxt->output, ", external parsed\n");
672 fprintf(ctxt->output, ", unparsed\n");
675 fprintf(ctxt->output, ", parameter\n");
678 fprintf(ctxt->output, ", external parameter\n");
681 fprintf(ctxt->output, ", predefined\n");
686 fprintf(ctxt->output, " ExternalID=%s\n",
691 fprintf(ctxt->output, " SystemID=%s\n",
696 fprintf(ctxt->output, " URI=%s\n", (char *) ent->URI);
700 fprintf(ctxt->output, " content=");
702 fprintf(ctxt->output, "\n");
719 fprintf(ctxt->output, "namespace node is NULL\n");
738 fprintf(ctxt->output, "namespace %s href=",
741 fprintf(ctxt->output, "default namespace href=");
744 fprintf(ctxt->output, "\n");
765 fprintf(ctxt->output, "Entity is NULL\n");
771 fprintf(ctxt->output, "INTERNAL_GENERAL_ENTITY ");
774 fprintf(ctxt->output, "EXTERNAL_GENERAL_PARSED_ENTITY ");
777 fprintf(ctxt->output, "EXTERNAL_GENERAL_UNPARSED_ENTITY ");
780 fprintf(ctxt->output, "INTERNAL_PARAMETER_ENTITY ");
783 fprintf(ctxt->output, "EXTERNAL_PARAMETER_ENTITY ");
786 fprintf(ctxt->output, "ENTITY_%d ! ", (int) ent->etype);
788 fprintf(ctxt->output, "%s\n", ent->name);
791 fprintf(ctxt->output, "ExternalID=%s\n",
796 fprintf(ctxt->output, "SystemID=%s\n", (char *) ent->SystemID);
800 fprintf(ctxt->output, "URI=%s\n", (char *) ent->URI);
804 fprintf(ctxt->output, "content=");
806 fprintf(ctxt->output, "\n");
813 * @output: the FILE * for the output
826 fprintf(ctxt->output, "Attr is NULL");
830 fprintf(ctxt->output, "ATTRIBUTE ");
832 fprintf(ctxt->output, "\n");
851 * @output: the FILE * for the output
868 * @output: the FILE * for the output
880 fprintf(ctxt->output, "node is NULL\n");
890 fprintf(ctxt->output, "ELEMENT ");
893 fprintf(ctxt->output, ":");
896 fprintf(ctxt->output, "\n");
902 fprintf(ctxt->output, "Error, ATTRIBUTE found here\n");
909 fprintf(ctxt->output, "TEXT no enc");
911 fprintf(ctxt->output, "TEXT");
914 fprintf(ctxt->output, " compact\n");
916 fprintf(ctxt->output, " interned\n");
918 fprintf(ctxt->output, "\n");
920 fprintf(ctxt->output, "\n");
926 fprintf(ctxt->output, "CDATA_SECTION\n");
932 fprintf(ctxt->output, "ENTITY_REF(%s)\n",
939 fprintf(ctxt->output, "ENTITY\n");
945 fprintf(ctxt->output, "PI %s\n", (char *) node->name);
951 fprintf(ctxt->output, "COMMENT\n");
959 fprintf(ctxt->output, "Error, DOCUMENT found here\n");
965 fprintf(ctxt->output, "DOCUMENT_TYPE\n");
971 fprintf(ctxt->output, "DOCUMENT_FRAG\n");
977 fprintf(ctxt->output, "NOTATION\n");
998 fprintf(ctxt->output, "INCLUDE START\n");
1004 fprintf(ctxt->output, "INCLUDE END\n");
1018 fprintf(ctxt->output, "PBM: doc == NULL !!!\n");
1029 fprintf(ctxt->output, "content=");
1031 fprintf(ctxt->output, "\n");
1051 * @output: the FILE * for the output
1063 fprintf(ctxt->output, "node is NULL\n");
1078 * @output: the FILE * for the output
1098 fprintf(ctxt->output, "DOCUMENT == NULL !\n");
1138 fprintf(ctxt->output, "DOCUMENT\n");
1142 fprintf(ctxt->output, "HTML DOCUMENT\n");
1164 * @output: the FILE * for the output
1176 fprintf(ctxt->output, "name=");
1178 fprintf(ctxt->output, "\n");
1181 fprintf(ctxt->output, "version=");
1183 fprintf(ctxt->output, "\n");
1186 fprintf(ctxt->output, "encoding=");
1188 fprintf(ctxt->output, "\n");
1191 fprintf(ctxt->output, "URL=");
1193 fprintf(ctxt->output, "\n");
1196 fprintf(ctxt->output, "standalone=true\n");
1204 * @output: the FILE * for the output
1214 fprintf(ctxt->output, "DOCUMENT == NULL !\n");
1232 fprintf(ctxt->output, "Entity is NULL");
1236 fprintf(ctxt->output, "%s : ", (char *) cur->name);
1239 fprintf(ctxt->output, "INTERNAL GENERAL, ");
1242 fprintf(ctxt->output, "EXTERNAL PARSED, ");
1245 fprintf(ctxt->output, "EXTERNAL UNPARSED, ");
1248 fprintf(ctxt->output, "INTERNAL PARAMETER, ");
1251 fprintf(ctxt->output, "EXTERNAL PARAMETER, ");
1258 fprintf(ctxt->output, "ID \"%s\"", (char *) cur->ExternalID);
1260 fprintf(ctxt->output, "SYSTEM \"%s\"", (char *) cur->SystemID);
1262 fprintf(ctxt->output, "\n orig \"%s\"", (char *) cur->orig);
1264 fprintf(ctxt->output, "\n content \"%s\"",
1266 fprintf(ctxt->output, "\n");
1272 * @output: the FILE * for the output
1287 fprintf(ctxt->output, "Entities in internal subset\n");
1291 fprintf(ctxt->output, "No entities in internal subset\n");
1297 fprintf(ctxt->output, "Entities in external subset\n");
1301 fprintf(ctxt->output, "No entities in external subset\n");
1306 * @output: the FILE * for the output
1316 fprintf(ctxt->output, "DTD is NULL\n");
1321 fprintf(ctxt->output, " DTD is empty\n");
1337 * @output: the FILE * for the output
1343 xmlDebugDumpString(FILE * output, const xmlChar * str)
1347 if (output == NULL)
1348 output = stdout;
1350 fprintf(output, "(NULL)");
1357 fputc(' ', output);
1359 fprintf(output, "#%X", str[i]);
1361 fputc(str[i], output);
1362 fprintf(output, "...");
1367 * @output: the FILE * for the output
1374 xmlDebugDumpAttr(FILE *output, xmlAttrPtr attr, int depth) {
1377 if (output == NULL) return;
1379 ctxt.output = output;
1388 * @output: the FILE * for the output
1394 xmlDebugDumpEntities(FILE * output, xmlDocPtr doc)
1398 if (output == NULL) return;
1400 ctxt.output = output;
1407 * @output: the FILE * for the output
1414 xmlDebugDumpAttrList(FILE * output, xmlAttrPtr attr, int depth)
1418 if (output == NULL) return;
1420 ctxt.output = output;
1428 * @output: the FILE * for the output
1435 xmlDebugDumpOneNode(FILE * output, xmlNodePtr node, int depth)
1439 if (output == NULL) return;
1441 ctxt.output = output;
1449 * @output: the FILE * for the output
1456 xmlDebugDumpNode(FILE * output, xmlNodePtr node, int depth)
1460 if (output == NULL)
1461 output = stdout;
1463 ctxt.output = output;
1471 * @output: the FILE * for the output
1478 xmlDebugDumpNodeList(FILE * output, xmlNodePtr node, int depth)
1482 if (output == NULL)
1483 output = stdout;
1485 ctxt.output = output;
1493 * @output: the FILE * for the output
1499 xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc)
1503 if (output == NULL)
1504 output = stdout;
1507 ctxt.output = output;
1514 * @output: the FILE * for the output
1520 xmlDebugDumpDocument(FILE * output, xmlDocPtr doc)
1524 if (output == NULL)
1525 output = stdout;
1528 ctxt.output = output;
1535 * @output: the FILE * for the output
1541 xmlDebugDumpDTD(FILE * output, xmlDtdPtr dtd)
1545 if (output == NULL)
1546 output = stdout;
1549 ctxt.output = output;
1562 * @output: the FILE * for the output
1565 * Check the document for potential content problems, and output
1566 * the errors to @output
1571 xmlDebugCheckDocument(FILE * output, xmlDocPtr doc)
1575 if (output == NULL)
1576 output = stdout;
1578 ctxt.output = output;
1651 * @output: the FILE * for the output
1654 * Dump to @output the type and name of @node.
1657 xmlLsOneNode(FILE *output, xmlNodePtr node) {
1658 if (output == NULL) return;
1660 fprintf(output, "NULL\n");
1665 fprintf(output, "-");
1668 fprintf(output, "a");
1671 fprintf(output, "t");
1674 fprintf(output, "C");
1677 fprintf(output, "e");
1680 fprintf(output, "E");
1683 fprintf(output, "p");
1686 fprintf(output, "c");
1689 fprintf(output, "d");
1692 fprintf(output, "h");
1695 fprintf(output, "T");
1698 fprintf(output, "F");
1701 fprintf(output, "N");
1704 fprintf(output, "n");
1707 fprintf(output, "?");
1711 fprintf(output, "a");
1713 fprintf(output, "-");
1715 fprintf(output, "n");
1717 fprintf(output, "-");
1720 fprintf(output, " %8d ", xmlLsCountNode(node));
1725 fprintf(output, "%s", (const char *) node->name);
1729 fprintf(output, "%s", (const char *) node->name);
1733 xmlDebugDumpString(output, node->content);
1740 fprintf(output, "%s", (const char *) node->name);
1744 fprintf(output, "%s", (const char *) node->name);
1748 fprintf(output, "%s", (const char *) node->name);
1766 fprintf(output, "default -> %s", (char *)ns->href);
1768 fprintf(output, "%s -> %s", (char *)ns->prefix,
1774 fprintf(output, "%s", (const char *) node->name);
1776 fprintf(output, "\n");
1878 * @node : a non-null node to print to the output FILE
1880 * Print node to the output FILE
1892 fp = ctxt->output;
1906 * @node : a non-null node to print to the output FILE
1908 * Print node to the output FILE
1922 * Prints result to the output FILE
1976 * Prints result to the output FILE
2005 fprintf(ctxt->output, "NULL\n");
2012 xmlLsOneNode(ctxt->output, node);
2017 xmlLsOneNode(ctxt->output, node);
2021 xmlLsOneNode(ctxt->output, cur);
2048 fprintf(ctxt->output, "NULL\n");
2055 fprintf(ctxt->output, " No base found !!!\n");
2057 fprintf(ctxt->output, "%s\n", base);
2120 fprintf(ctxt->output, "setns: prefix=[nsuri] required\n");
2135 fprintf(ctxt->output,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href);
2210 fprintf(ctxt->output, "%s : ", xmlGetNodePath(node));
2216 fprintf(ctxt->output, "%s : ", xmlGetNodePath(node->parent));
2275 fprintf(ctxt->output, "NULL\n");
2280 xmlDebugDumpDocumentHead(ctxt->output, (xmlDocPtr) node);
2282 xmlDebugDumpAttr(ctxt->output, (xmlAttrPtr) node, 0);
2284 xmlDebugDumpOneNode(ctxt->output, node, 0);
2312 fprintf(ctxt->output, "NULL\n");
2316 fprintf(ctxt->output, "NULL\n");
2329 fprintf(ctxt->output, "failed to parse content\n");
2410 fprintf(ctxt->output, "NULL\n");
2416 htmlDocDump(ctxt->output, (htmlDocPtr) node);
2418 htmlNodeDumpFile(ctxt->output, ctxt->doc, node);
2421 xmlDocDump(ctxt->output, (xmlDocPtr) node);
2423 xmlElemDump(ctxt->output, ctxt->doc, node);
2427 xmlDocDump(ctxt->output, (xmlDocPtr) node);
2429 xmlElemDump(ctxt->output, ctxt->doc, node);
2431 fprintf(ctxt->output, "\n");
2464 fprintf(ctxt->output, "HTML support not compiled in\n");
2692 fprintf(ctxt->output, "/\n");
2695 fprintf(ctxt->output, " ");
2696 fprintf(ctxt->output, "%s\n", node->name);
2747 * @buffer: the output buffer
2754 * The output is compatible with XPath commands.
2789 * @filename: the output buffer
2791 * @output: the output FILE*, defaults to stdout if NULL
2799 FILE * output)
2816 if (output == NULL)
2817 output = stdout;
2824 ctxt->output = output;
2895 fprintf(ctxt->output, "\tbase display XML base of the node\n");
2896 fprintf(ctxt->output, "\tsetbase URI change the XML base of the node\n");
2897 fprintf(ctxt->output, "\tbye leave shell\n");
2898 fprintf(ctxt->output, "\tcat [node] display node or current node\n");
2899 fprintf(ctxt->output, "\tcd [path] change directory to path or to root\n");
2900 fprintf(ctxt->output, "\tdir [path] dumps informations about the node (namespace, attributes, content)\n");
2901 fprintf(ctxt->output, "\tdu [path] show the structure of the subtree under path or the current node\n");
2902 fprintf(ctxt->output, "\texit leave shell\n");
2903 fprintf(ctxt->output, "\thelp display this help\n");
2904 fprintf(ctxt->output, "\tfree display memory usage\n");
2905 fprintf(ctxt->output, "\tload [name] load a new document with name\n");
2906 fprintf(ctxt->output, "\tls [path] list contents of path or the current directory\n");
2907 fprintf(ctxt->output, "\tset xml_fragment replace the current node content with the fragment parsed in context\n");
2909 fprintf(ctxt->output, "\txpath expr evaluate the XPath expression in that context and print the result\n");
2910 fprintf(ctxt->output, "\tsetns nsreg register a namespace to a prefix in the XPath evaluation context\n");
2911 fprintf(ctxt->output, "\t format for nsreg is: prefix=[nsuri] (i.e. prefix= unsets a prefix)\n");
2912 fprintf(ctxt->output, "\tsetrootns register all namespace found on the root element\n");
2913 fprintf(ctxt->output, "\t the default namespace if any uses 'defaultns' prefix\n");
2915 fprintf(ctxt->output, "\tpwd display current working directory\n");
2916 fprintf(ctxt->output, "\tquit leave shell\n");
2918 fprintf(ctxt->output, "\tsave [name] save this document to name or the original name\n");
2919 fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
2922 fprintf(ctxt->output, "\tvalidate check the document for errors\n");
2925 fprintf(ctxt->output, "\trelaxng rng validate the document agaisnt the Relax-NG schemas\n");
2927 fprintf(ctxt->output, "\tgrep string search for a string in the subtree\n");
2952 xmlMemShow(ctxt->output, 0);
2957 xmlMemShow(ctxt->output, len);
2963 fprintf(ctxt->output, "%s\n", dir);
2990 xmlXPathDebugDumpObject(ctxt->output, list, 0);
3191 fprintf(ctxt->output, " -------\n");