Home | History | Annotate | Download | only in libxml2

Lines Matching defs:dtd

28    "-//W3C//DTD XHTML 1.0 Strict//EN"
30 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
32 "-//W3C//DTD XHTML 1.0 Frameset//EN"
34 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
36 "-//W3C//DTD XHTML 1.0 Transitional//EN"
38 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
46 * Try to find if the document correspond to an XHTML DTD
608 * @dtdDTD
610 * Dump the XML document DTD, if any.
613 xmlDtdDumpOutput(xmlSaveCtxtPtr ctxt, xmlDtdPtr dtd) {
618 if (dtd == NULL) return;
623 xmlOutputBufferWriteString(buf, (const char *)dtd->name);
624 if (dtd->ExternalID != NULL) {
626 xmlBufferWriteQuotedString(buf->buffer, dtd->ExternalID);
628 xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID);
629 } else if (dtd->SystemID != NULL) {
631 xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID);
633 if ((dtd->entities == NULL) && (dtd->elements == NULL) &&
634 (dtd->attributes == NULL) && (dtd->notations == NULL) &&
635 (dtd->pentities == NULL)) {
641 * Dump the notations first they are not in the DTD children list
642 * Do this only on a standalone DTD or on the internal subset though.
644 if ((dtd->notations != NULL) && ((dtd->doc == NULL) ||
645 (dtd->doc->intSubset == dtd))) {
646 xmlDumpNotationTable(buf->buffer, (xmlNotationTablePtr) dtd->notations);
653 ctxt->doc = dtd->doc;
654 xmlNodeListDumpOutput(ctxt, dtd->children);
1009 xmlDtdPtr dtd;
1122 dtd = xmlGetIntSubset(cur);
1123 if (dtd != NULL) {
1124 is_xhtml = xmlIsXHTML(dtd->SystemID, dtd->ExternalID);
2194 xmlDtdPtr dtd;
2215 dtd = xmlGetIntSubset(doc);
2216 if (dtd != NULL) {
2217 is_xhtml = xmlIsXHTML(dtd->SystemID, dtd->ExternalID);