Re: [xsl] Outputting the DOCTYPE tag to XHTML

Subject: Re: [xsl] Outputting the DOCTYPE tag to XHTML
From: Gan Uesli Starling <alias@xxxxxxxxxxx>
Date: Sun, 30 Mar 2003 12:01:45 -0500
Oleg Tkachenko wrote:
Gan Uesli Starling wrote:

How do I get XSLT to insert this....

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

...into my XHTML output? Is a problem


<xsl:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"/>


Alas, Apache Xalan says...


baal: {49} !!
java org.apache.xalan.xslt.Process -in gus_netbsd.xml -xsl ~/apache/XML/howto.xsl -out foo.html
========= Parsing file:/home/aplonis/apache/XML/howto.xsl ==========
XSL Error: Could not parse file:/home/aplonis/apache/XML/howto.xsl document!
XSL Error: processStylesheet not successful!
XSLT: Unknown XSL element: output
Xalan: was not successful.
XSLProcessor: done
baal: {50}


--

Mistera Sturno - Rarest Extinct Bird

 <(+)__       Gan Uesli Starling
  ((__/)=-    Kalamazoo, MI, USA
   `||`
    ++        http://starling.us


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread