Re: [xslt] a question about DOCTYPE in xsltproc's result



On Mon, Jan 03, 2005 at 04:26:17PM +0800, YiDa Chiang wrote:
> I'm recently read some archive about quirks mode,and I find the page
> xsltproc(in libxslt-1.1.12) parses out is using
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  >
> this makes mozilla firefox-1.0 use quirks mode
> and after I change it to
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
> http://www.w3.org/TR/html4/loose.dtd"; >,firefox use Standards Mode
> is there anything to change(xslt file,xsltproc argument...) so that
> the parsed page use the latter DOCTYPE?

  See the spec !
    http://www.w3.org/TR/xslt#section-XML-Output-Method
  doctype-system and doctype-public

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]