Php generated XHTML transformed by XSLT and Doctype problem

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
ebeworld
Forum Newbie
Posts: 1
Joined: Tue May 26, 2009 4:27 pm

Php generated XHTML transformed by XSLT and Doctype problem

Post by ebeworld »

0

I am transforming XHTML to XHTML using XSLT and Doctype part is giving me problem

Code: Select all

 
<?xml version="1.0" encoding="ISO-8859-1"?&gt
<?xml-stylesheet type="text/xsl" href="LimeSurvey.xslt"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&;lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...
<html>
 

and this is not valid xml, according to IE8, FF3. Is there any way to prevent generating DOCType, xmlns from php engine? Or is there any way to make XSLT ignore DOCTYPE and xmlns?

Thanks, Ebe
Last edited by Benjamin on Tue May 26, 2009 4:31 pm, edited 1 time in total.
Reason: Changed code type from text to html.
Post Reply