Re: [xslt] Unwanted <meta> tag



On Mon, Jan 10, 2005 at 04:11:13PM +0000, Neil Dunn wrote:
> 
> On 10 Jan 2005, at 13:59, Daniel Veillard wrote:
> 
> >On Mon, Jan 10, 2005 at 01:54:45PM +0000, Neil Dunn wrote:
> >>Hi guys,
> >>
> >>When transforming into XHTML (xml output mode) a helpful <meta> tag is
> >>placed in the <head> of the document, something along the lines of
> >><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />,
> >>depending on the encoding.
> >>
> >>Is there an internal option for turning off this addition within
> >>libxslt?
> >
> >  at this point, no. It's just libxml2 following the suggestions from
> >the XHTML spec.
> >    http://www.w3.org/TR/xhtml1/#C_9
> >
> 
> OK, I was looking through the source of libxslt, I'll try and track 
> down the code in libxml2 and fiddle around.

  in xmlsave.c, see xmlNodeDumpOutput() and xmlIsXHTML() for
example. at the XSLT/C level it's probably possible by omitting the
XML Declaration outputting it yourself, outputting the doctype type
unlinking the DTD, and then calling xsltSaveResult...

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://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][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]