Lines Matching refs:output

42     FILE *output;               /* the output file */
64 ctxt->output = stdout;
142 if ((ctxt->output != NULL) && (ctxt->depth > 0)) {
144 fprintf(ctxt->output, "%s", &ctxt->shift[100 - 2 * ctxt->depth]);
146 fprintf(ctxt->output, "%s", ctxt->shift);
429 fprintf(ctxt->output, "(NULL)");
436 fputc(' ', ctxt->output);
438 fprintf(ctxt->output, "#%X", str[i]);
440 fputc(str[i], ctxt->output);
441 fprintf(ctxt->output, "...");
451 fprintf(ctxt->output, "DTD node is NULL\n");
462 fprintf(ctxt->output, "DTD(%s)", (char *) dtd->name);
464 fprintf(ctxt->output, "DTD");
466 fprintf(ctxt->output, ", PUBLIC %s", (char *) dtd->ExternalID);
468 fprintf(ctxt->output, ", SYSTEM %s", (char *) dtd->SystemID);
469 fprintf(ctxt->output, "\n");
484 fprintf(ctxt->output, "Attribute declaration is NULL\n");
494 fprintf(ctxt->output, "ATTRDECL(%s)", (char *) attr->name);
500 fprintf(ctxt->output, " for %s", (char *) attr->elem);
507 fprintf(ctxt->output, " CDATA");
510 fprintf(ctxt->output, " ID");
513 fprintf(ctxt->output, " IDREF");
516 fprintf(ctxt->output, " IDREFS");
519 fprintf(ctxt->output, " ENTITY");
522 fprintf(ctxt->output, " ENTITIES");
525 fprintf(ctxt->output, " NMTOKEN");
528 fprintf(ctxt->output, " NMTOKENS");
531 fprintf(ctxt->output, " ENUMERATION");
534 fprintf(ctxt->output, " NOTATION ");
543 fprintf(ctxt->output, "|%s", (char *) cur->name);
545 fprintf(ctxt->output, " (%s", (char *) cur->name);
551 fprintf(ctxt->output, ")");
553 fprintf(ctxt->output, "...)");
559 fprintf(ctxt->output, " REQUIRED");
562 fprintf(ctxt->output, " IMPLIED");
565 fprintf(ctxt->output, " FIXED");
569 fprintf(ctxt->output, "\"");
571 fprintf(ctxt->output, "\"");
573 fprintf(ctxt->output, "\n");
589 fprintf(ctxt->output, "Element declaration is NULL\n");
599 fprintf(ctxt->output, "ELEMDECL(");
601 fprintf(ctxt->output, ")");
609 fprintf(ctxt->output, ", UNDEFINED");
612 fprintf(ctxt->output, ", EMPTY");
615 fprintf(ctxt->output, ", ANY");
618 fprintf(ctxt->output, ", MIXED ");
621 fprintf(ctxt->output, ", MIXED ");
630 fprintf(ctxt->output, "%s", buf);
632 fprintf(ctxt->output, "\n");
648 fprintf(ctxt->output, "Entity declaration is NULL\n");
658 fprintf(ctxt->output, "ENTITYDECL(");
660 fprintf(ctxt->output, ")");
668 fprintf(ctxt->output, ", internal\n");
671 fprintf(ctxt->output, ", external parsed\n");
674 fprintf(ctxt->output, ", unparsed\n");
677 fprintf(ctxt->output, ", parameter\n");
680 fprintf(ctxt->output, ", external parameter\n");
683 fprintf(ctxt->output, ", predefined\n");
688 fprintf(ctxt->output, " ExternalID=%s\n",
693 fprintf(ctxt->output, " SystemID=%s\n",
698 fprintf(ctxt->output, " URI=%s\n", (char *) ent->URI);
702 fprintf(ctxt->output, " content=");
704 fprintf(ctxt->output, "\n");
721 fprintf(ctxt->output, "namespace node is NULL\n");
740 fprintf(ctxt->output, "namespace %s href=",
743 fprintf(ctxt->output, "default namespace href=");
746 fprintf(ctxt->output, "\n");
767 fprintf(ctxt->output, "Entity is NULL\n");
773 fprintf(ctxt->output, "INTERNAL_GENERAL_ENTITY ");
776 fprintf(ctxt->output, "EXTERNAL_GENERAL_PARSED_ENTITY ");
779 fprintf(ctxt->output, "EXTERNAL_GENERAL_UNPARSED_ENTITY ");
782 fprintf(ctxt->output, "INTERNAL_PARAMETER_ENTITY ");
785 fprintf(ctxt->output, "EXTERNAL_PARAMETER_ENTITY ");
788 fprintf(ctxt->output, "ENTITY_%d ! ", (int) ent->etype);
790 fprintf(ctxt->output, "%s\n", ent->name);
793 fprintf(ctxt->output, "ExternalID=%s\n",
798 fprintf(ctxt->output, "SystemID=%s\n", (char *) ent->SystemID);
802 fprintf(ctxt->output, "URI=%s\n", (char *) ent->URI);
806 fprintf(ctxt->output, "content=");
808 fprintf(ctxt->output, "\n");
815 * @output: the FILE * for the output
828 fprintf(ctxt->output, "Attr is NULL");
832 fprintf(ctxt->output, "ATTRIBUTE ");
834 fprintf(ctxt->output, "\n");
853 * @output: the FILE * for the output
870 * @output: the FILE * for the output
882 fprintf(ctxt->output, "node is NULL\n");
892 fprintf(ctxt->output, "ELEMENT ");
895 fprintf(ctxt->output, ":");
898 fprintf(ctxt->output, "\n");
904 fprintf(ctxt->output, "Error, ATTRIBUTE found here\n");
911 fprintf(ctxt->output, "TEXT no enc");
913 fprintf(ctxt->output, "TEXT");
916 fprintf(ctxt->output, " compact\n");
918 fprintf(ctxt->output, " interned\n");
920 fprintf(ctxt->output, "\n");
922 fprintf(ctxt->output, "\n");
928 fprintf(ctxt->output, "CDATA_SECTION\n");
934 fprintf(ctxt->output, "ENTITY_REF(%s)\n",
941 fprintf(ctxt->output, "ENTITY\n");
947 fprintf(ctxt->output, "PI %s\n", (char *) node->name);
953 fprintf(ctxt->output, "COMMENT\n");
961 fprintf(ctxt->output, "Error, DOCUMENT found here\n");
967 fprintf(ctxt->output, "DOCUMENT_TYPE\n");
973 fprintf(ctxt->output, "DOCUMENT_FRAG\n");
979 fprintf(ctxt->output, "NOTATION\n");
1000 fprintf(ctxt->output, "INCLUDE START\n");
1006 fprintf(ctxt->output, "INCLUDE END\n");
1020 fprintf(ctxt->output, "PBM: doc == NULL !!!\n");
1031 fprintf(ctxt->output, "content=");
1033 fprintf(ctxt->output, "\n");
1053 * @output: the FILE * for the output
1065 fprintf(ctxt->output, "node is NULL\n");
1080 * @output: the FILE * for the output
1100 fprintf(ctxt->output, "DOCUMENT == NULL !\n");
1140 fprintf(ctxt->output, "DOCUMENT\n");
1144 fprintf(ctxt->output, "HTML DOCUMENT\n");
1166 * @output: the FILE * for the output
1178 fprintf(ctxt->output, "name=");
1180 fprintf(ctxt->output, "\n");
1183 fprintf(ctxt->output, "version=");
1185 fprintf(ctxt->output, "\n");
1188 fprintf(ctxt->output, "encoding=");
1190 fprintf(ctxt->output, "\n");
1193 fprintf(ctxt->output, "URL=");
1195 fprintf(ctxt->output, "\n");
1198 fprintf(ctxt->output, "standalone=true\n");
1206 * @output: the FILE * for the output
1216 fprintf(ctxt->output, "DOCUMENT == NULL !\n");
1234 fprintf(ctxt->output, "Entity is NULL");
1238 fprintf(ctxt->output, "%s : ", (char *) cur->name);
1241 fprintf(ctxt->output, "INTERNAL GENERAL, ");
1244 fprintf(ctxt->output, "EXTERNAL PARSED, ");
1247 fprintf(ctxt->output, "EXTERNAL UNPARSED, ");
1250 fprintf(ctxt->output, "INTERNAL PARAMETER, ");
1253 fprintf(ctxt->output, "EXTERNAL PARAMETER, ");
1260 fprintf(ctxt->output, "ID \"%s\"", (char *) cur->ExternalID);
1262 fprintf(ctxt->output, "SYSTEM \"%s\"", (char *) cur->SystemID);
1264 fprintf(ctxt->output, "\n orig \"%s\"", (char *) cur->orig);
1266 fprintf(ctxt->output, "\n content \"%s\"",
1268 fprintf(ctxt->output, "\n");
1274 * @output: the FILE * for the output
1289 fprintf(ctxt->output, "Entities in internal subset\n");
1293 fprintf(ctxt->output, "No entities in internal subset\n");
1299 fprintf(ctxt->output, "Entities in external subset\n");
1303 fprintf(ctxt->output, "No entities in external subset\n");
1308 * @output: the FILE * for the output
1318 fprintf(ctxt->output, "DTD is NULL\n");
1323 fprintf(ctxt->output, " DTD is empty\n");
1339 * @output: the FILE * for the output
1345 xmlDebugDumpString(FILE * output, const xmlChar * str)
1349 if (output == NULL)
1350 output = stdout;
1352 fprintf(output, "(NULL)");
1359 fputc(' ', output);
1361 fprintf(output, "#%X", str[i]);
1363 fputc(str[i], output);
1364 fprintf(output, "...");
1369 * @output: the FILE * for the output
1376 xmlDebugDumpAttr(FILE *output, xmlAttrPtr attr, int depth) {
1379 if (output == NULL) return;
1381 ctxt.output = output;
1390 * @output: the FILE * for the output
1396 xmlDebugDumpEntities(FILE * output, xmlDocPtr doc)
1400 if (output == NULL) return;
1402 ctxt.output = output;
1409 * @output: the FILE * for the output
1416 xmlDebugDumpAttrList(FILE * output, xmlAttrPtr attr, int depth)
1420 if (output == NULL) return;
1422 ctxt.output = output;
1430 * @output: the FILE * for the output
1437 xmlDebugDumpOneNode(FILE * output, xmlNodePtr node, int depth)
1441 if (output == NULL) return;
1443 ctxt.output = output;
1451 * @output: the FILE * for the output
1458 xmlDebugDumpNode(FILE * output, xmlNodePtr node, int depth)
1462 if (output == NULL)
1463 output = stdout;
1465 ctxt.output = output;
1473 * @output: the FILE * for the output
1480 xmlDebugDumpNodeList(FILE * output, xmlNodePtr node, int depth)
1484 if (output == NULL)
1485 output = stdout;
1487 ctxt.output = output;
1495 * @output: the FILE * for the output
1501 xmlDebugDumpDocumentHead(FILE * output, xmlDocPtr doc)
1505 if (output == NULL)
1506 output = stdout;
1509 ctxt.output = output;
1516 * @output: the FILE * for the output
1522 xmlDebugDumpDocument(FILE * output, xmlDocPtr doc)
1526 if (output == NULL)
1527 output = stdout;
1530 ctxt.output = output;
1537 * @output: the FILE * for the output
1543 xmlDebugDumpDTD(FILE * output, xmlDtdPtr dtd)
1547 if (output == NULL)
1548 output = stdout;
1551 ctxt.output = output;
1564 * @output: the FILE * for the output
1567 * Check the document for potential content problems, and output
1568 * the errors to @output
1573 xmlDebugCheckDocument(FILE * output, xmlDocPtr doc)
1577 if (output == NULL)
1578 output = stdout;
1580 ctxt.output = output;
1653 * @output: the FILE * for the output
1656 * Dump to @output the type and name of @node.
1659 xmlLsOneNode(FILE *output, xmlNodePtr node) {
1660 if (output == NULL) return;
1662 fprintf(output, "NULL\n");
1667 fprintf(output, "-");
1670 fprintf(output, "a");
1673 fprintf(output, "t");
1676 fprintf(output, "C");
1679 fprintf(output, "e");
1682 fprintf(output, "E");
1685 fprintf(output, "p");
1688 fprintf(output, "c");
1691 fprintf(output, "d");
1694 fprintf(output, "h");
1697 fprintf(output, "T");
1700 fprintf(output, "F");
1703 fprintf(output, "N");
1706 fprintf(output, "n");
1709 fprintf(output, "?");
1713 fprintf(output, "a");
1715 fprintf(output, "-");
1717 fprintf(output, "n");
1719 fprintf(output, "-");
1722 fprintf(output, " %8d ", xmlLsCountNode(node));
1728 fprintf(output, "%s:", node->ns->prefix);
1729 fprintf(output, "%s", (const char *) node->name);
1734 fprintf(output, "%s", (const char *) node->name);
1738 xmlDebugDumpString(output, node->content);
1745 fprintf(output, "%s", (const char *) node->name);
1749 fprintf(output, "%s", (const char *) node->name);
1753 fprintf(output, "%s", (const char *) node->name);
1771 fprintf(output, "default -> %s", (char *)ns->href);
1773 fprintf(output, "%s -> %s", (char *)ns->prefix,
1779 fprintf(output, "%s", (const char *) node->name);
1781 fprintf(output, "\n");
1883 * @node : a non-null node to print to the output FILE
1885 * Print node to the output FILE
1897 fp = ctxt->output;
1911 * @node : a non-null node to print to the output FILE
1913 * Print node to the output FILE
1927 * Prints result to the output FILE
1981 * Prints result to the output FILE
2010 fprintf(ctxt->output, "NULL\n");
2017 xmlLsOneNode(ctxt->output, node);
2022 xmlLsOneNode(ctxt->output, node);
2026 xmlLsOneNode(ctxt->output, cur);
2053 fprintf(ctxt->output, "NULL\n");
2060 fprintf(ctxt->output, " No base found !!!\n");
2062 fprintf(ctxt->output, "%s\n", base);
2125 fprintf(ctxt->output, "setns: prefix=[nsuri] required\n");
2140 fprintf(ctxt->output,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href);
2215 fprintf(ctxt->output, "%s : ", xmlGetNodePath(node));
2221 fprintf(ctxt->output, "%s : ", xmlGetNodePath(node->parent));
2280 fprintf(ctxt->output, "NULL\n");
2285 xmlDebugDumpDocumentHead(ctxt->output, (xmlDocPtr) node);
2287 xmlDebugDumpAttr(ctxt->output, (xmlAttrPtr) node, 0);
2289 xmlDebugDumpOneNode(ctxt->output, node, 0);
2317 fprintf(ctxt->output, "NULL\n");
2321 fprintf(ctxt->output, "NULL\n");
2334 fprintf(ctxt->output, "failed to parse content\n");
2415 fprintf(ctxt->output, "NULL\n");
2421 htmlDocDump(ctxt->output, (htmlDocPtr) node);
2423 htmlNodeDumpFile(ctxt->output, ctxt->doc, node);
2426 xmlDocDump(ctxt->output, (xmlDocPtr) node);
2428 xmlElemDump(ctxt->output, ctxt->doc, node);
2432 xmlDocDump(ctxt->output, (xmlDocPtr) node);
2434 xmlElemDump(ctxt->output, ctxt->doc, node);
2436 fprintf(ctxt->output, "\n");
2469 fprintf(ctxt->output, "HTML support not compiled in\n");
2697 fprintf(ctxt->output, "/\n");
2700 fprintf(ctxt->output, " ");
2702 fprintf(ctxt->output, "%s:", node->ns->prefix);
2703 fprintf(ctxt->output, "%s\n", node->name);
2754 * @buffer: the output buffer
2761 * The output is compatible with XPath commands.
2796 * @filename: the output buffer
2798 * @output: the output FILE*, defaults to stdout if NULL
2806 FILE * output)
2822 if (output == NULL)
2823 output = stdout;
2830 ctxt->output = output;
2901 fprintf(ctxt->output, "\tbase display XML base of the node\n");
2902 fprintf(ctxt->output, "\tsetbase URI change the XML base of the node\n");
2903 fprintf(ctxt->output, "\tbye leave shell\n");
2904 fprintf(ctxt->output, "\tcat [node] display node or current node\n");
2905 fprintf(ctxt->output, "\tcd [path] change directory to path or to root\n");
2906 fprintf(ctxt->output, "\tdir [path] dumps informations about the node (namespace, attributes, content)\n");
2907 fprintf(ctxt->output, "\tdu [path] show the structure of the subtree under path or the current node\n");
2908 fprintf(ctxt->output, "\texit leave shell\n");
2909 fprintf(ctxt->output, "\thelp display this help\n");
2910 fprintf(ctxt->output, "\tfree display memory usage\n");
2911 fprintf(ctxt->output, "\tload [name] load a new document with name\n");
2912 fprintf(ctxt->output, "\tls [path] list contents of path or the current directory\n");
2913 fprintf(ctxt->output, "\tset xml_fragment replace the current node content with the fragment parsed in context\n");
2915 fprintf(ctxt->output, "\txpath expr evaluate the XPath expression in that context and print the result\n");
2916 fprintf(ctxt->output, "\tsetns nsreg register a namespace to a prefix in the XPath evaluation context\n");
2917 fprintf(ctxt->output, "\t format for nsreg is: prefix=[nsuri] (i.e. prefix= unsets a prefix)\n");
2918 fprintf(ctxt->output, "\tsetrootns register all namespace found on the root element\n");
2919 fprintf(ctxt->output, "\t the default namespace if any uses 'defaultns' prefix\n");
2921 fprintf(ctxt->output, "\tpwd display current working directory\n");
2922 fprintf(ctxt->output, "\twhereis display absolute path of [path] or current working directory\n");
2923 fprintf(ctxt->output, "\tquit leave shell\n");
2925 fprintf(ctxt->output, "\tsave [name] save this document to name or the original name\n");
2926 fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
2929 fprintf(ctxt->output, "\tvalidate check the document for errors\n");
2932 fprintf(ctxt->output, "\trelaxng rng validate the document agaisnt the Relax-NG schemas\n");
2934 fprintf(ctxt->output, "\tgrep string search for a string in the subtree\n");
2959 xmlMemShow(ctxt->output, 0);
2964 xmlMemShow(ctxt->output, len);
2970 fprintf(ctxt->output, "%s\n", dir);
3069 xmlXPathDebugDumpObject(ctxt->output, list, 0);
3167 fprintf(ctxt->output, "%s\n", dir);
3192 fprintf(ctxt->output, "%s\n", dir);
3347 fprintf(ctxt->output, " -------\n");