This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] getting rid of !DOCTYPE in chunks
- From: Daniel Veillard <veillard at redhat dot com>
- To: Gabor Hojtsy <gabor at hojtsy dot hu>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 21 Apr 2003 19:00:38 -0400
- Subject: Re: [docbook-apps] getting rid of !DOCTYPE in chunks
- References: <3EA44C54.2070508@hojtsy.hu>
- Reply-to: veillard at redhat dot com
On Mon, Apr 21, 2003 at 09:53:56PM +0200, Gabor Hojtsy wrote:
> Trying with these params:
>
> <xsl:param name="chunker.output.doctype-public" select="''"/>
> <xsl:param name="chunker.output.doctype-system" select="''"/>
>
> I get a standard doctype (on one line):
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
By default libxslt implementation of exslt:document fallback to
a 4.0 version if there is no doctype defined:
------------- libxslt/transform.c l 1979 ---------------------
if (xmlStrEqual(method, (const xmlChar *) "html")) {
ctxt->type = XSLT_OUTPUT_HTML;
if (((doctypePublic != NULL) || (doctypeSystem != NULL)))
res = htmlNewDoc(doctypeSystem, doctypePublic);
else {
if (version == NULL)
version = (const xmlChar *) "4.0";
#ifdef XSLT_GENERATE_HTML_DOCTYPE
xsltGetHTMLIDs(version, &doctypePublic, &doctypeSystem);
#endif
res = htmlNewDoc(doctypeSystem, doctypePublic);
}
if (res == NULL)
goto error;
} else
---------------------------------------------------------------
This start to be at the limits of what's specified from what is not
in the XSLT spec and is even more unspecified in EXSLT...
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard at redhat dot com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org