* xmlIsXHTML: * @systemID: the system identifier * @publicID: the public identifier * * Try to find if the document correspond to an XHTML DTD * * Returns 1 if true, 0 if not and -1 in case of error */
| 9940 | * Returns 1 if true, 0 if not and -1 in case of error |
| 9941 | */ |
| 9942 | int |
| 9943 | xmlIsXHTML(const xmlChar *systemID, const xmlChar *publicID) { |
| 9944 | if ((systemID == NULL) && (publicID == NULL)) |
| 9945 | return(-1); |
| 9946 | if (publicID != NULL) { |
| 9947 | if (xmlStrEqual(publicID, XHTML_STRICT_PUBLIC_ID)) return(1); |
| 9948 | if (xmlStrEqual(publicID, XHTML_FRAME_PUBLIC_ID)) return(1); |
| 9949 | if (xmlStrEqual(publicID, XHTML_TRANS_PUBLIC_ID)) return(1); |
| 9950 | } |
| 9951 | if (systemID != NULL) { |
| 9952 | if (xmlStrEqual(systemID, XHTML_STRICT_SYSTEM_ID)) return(1); |
| 9953 | if (xmlStrEqual(systemID, XHTML_FRAME_SYSTEM_ID)) return(1); |
| 9954 | if (xmlStrEqual(systemID, XHTML_TRANS_SYSTEM_ID)) return(1); |
| 9955 | } |
| 9956 | return(0); |
| 9957 | } |
| 9958 | |
| 9959 | /************************************************************************ |
| 9960 | * * |
no test coverage detected