[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] getting rid of !DOCTYPE in chunks
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@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]