Re: [xslt] html output



On Tue, Oct 16, 2001 at 05:16:24PM -0700, Daniel Allen wrote:
> Since netscape4 sucks, it does not understand when an
> empty br tag has no space, like
> <br/> vs <br />
> 
> libxslt outputs and empty tag the first way...if the
> output method is set to html, it outputs it as
> 
> <br>
> 
> which is fine, except that it also outputs a DOCTYPE
> declartion...is there anyway to have it stop
> outputting the doctype declaration...if 
> 
> doctype-public=""
> 
> is set it outputs an empty doctype tag...so there is
> no way to get rid of the DOCTYPE all together with
> html, which I need since this is an html tree
> fragment, not the whole document.
> 
> any thoughts?

  Seems related to http://bugzilla.gnome.org/show_bug.cgi?id=62458
Section 16.2 of the spec on HTML Output Method says that DOCTYPE
must be generated if  the doctype-public or doctype-system attributes
are specified. But I don't know if it should not be generated if
not specified.
  Can someone check with Saxon and others XSLT processors and tell me
if they output a DOCTYPE when xsl:output with method="html" is specified
without doctype-public and doctype-system,

  TIA,

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]