Home | History | Annotate | Download | only in libxml2

Lines Matching refs: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
548 * @dtd: the pointer to the DTD
550 * Dump the XML document DTD, if any.
553 xmlDtdDumpOutput(xmlSaveCtxtPtr ctxt, xmlDtdPtr dtd) {
558 if (dtd == NULL) return;
563 xmlOutputBufferWriteString(buf, (const char *)dtd->name);
564 if (dtd->ExternalID != NULL) {
566 xmlBufferWriteQuotedString(buf->buffer, dtd->ExternalID);
568 xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID);
569 } else if (dtd->SystemID != NULL) {
571 xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID);
573 if ((dtd->entities == NULL) && (dtd->elements == NULL) &&
574 (dtd->attributes == NULL) && (dtd->notations == NULL) &&
575 (dtd->pentities == NULL)) {
581 * Dump the notations first they are not in the DTD children list
582 * Do this only on a standalone DTD or on the internal subset though.
584 if ((dtd->notations != NULL) && ((dtd->doc == NULL) ||
585 (dtd->doc->intSubset == dtd))) {
586 xmlDumpNotationTable(buf->buffer, (xmlNotationTablePtr) dtd->notations);
593 ctxt->doc = dtd->doc;
594 xmlNodeListDumpOutput(ctxt, dtd->children);
935 xmlDtdPtr dtd;
1049 dtd = xmlGetIntSubset(cur);
1050 if (dtd != NULL) {
1051 is_xhtml = xmlIsXHTML(dtd->SystemID, dtd->ExternalID);
2121 xmlDtdPtr dtd;
2142 dtd = xmlGetIntSubset(doc);
2143 if (dtd != NULL) {
2144 is_xhtml = xmlIsXHTML(dtd->SystemID, dtd->ExternalID);