XSLT and DTD

"[email protected]" <[email protected]> 9 Apr 2007 04:33:22 -0700
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
The following are on the server

XML file on server
XSLT PI file on server (XSLT used as PI to the XML file)
XSLT JS file on server (XSLT used in XSLTProcessor on the same XML
file)
JS file on server using XSLTProcessor and URL as parameter

Process is

1) XML file is translated using XSLT PI file to a stub page containing
reference to the JS File
2) JS on load of stub page gets the URL and uses the XSLT JS file to
create the desired page
3) Desired page completely replaces the stub page using removeChild
and appendChild

This is demonstrated here.

http://arsmc.org/documents/canobie_series.xml

and here

http://arsmc.org/documents/canobie_series.html

In the later case only steps 2 and 3 are involved. In others words the
html page acts as the stub.

My question is this.

I can get this to work in quirk mode on Firefox but as soon as I
attempt to use a DTD it produces the desired page but fails to render
it.

My goal is to have the desirted page be valid xhtml 1.1 strict.

What should the DTD on the stub be so I can produce and insert valid
xhtml as the final output.

The key here is I am replacing the entire document not just a node in
the body.

John Perkins
Salem, NH