Exporting a project and doctype declarations

Author Message
Daniel Lacroix 09/30/2009 03:26 pm
I just upgraded to version 5.x and notice the following:

When I export a project another doctype declaration is being added to all files.

Before the export
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- RESOURCEID = 9777 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


After the export
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- RESOURCEID = 9777 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


Since I am using the exported files to do page validation, I am now getting an error on every pages.
Would there be a way to prevent this.

Thanks.
Daniel.
Oleg Chernavin 09/30/2009 03:27 pm
Please uncheck the "Add original URL" box in the Export dialog. This should fix the issue.

Best regards,
Oleg Chernavin
MP Staff
Daniel Lacroix 10/02/2009 04:41 am
Oleg,

The "Add original URL" box in the Export dialog is already unchecked.

If I checked it, I would be getting the following

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!-- saved from url=(0066)http://www.expenditurereview-examendesdepenses.gc.ca/index-eng.asp -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- RESOURCEID = 10047 -->


Daniel.
Oleg Chernavin 10/02/2009 06:49 am
Thank you! I reproduced and fixed the issue.

Here is the updated oe.exe file:

http://www.metaproducts.com/download/betas/OEP3116.ZIP

Oleg.
Daniel Lacroix 10/02/2009 09:26 am
Thanks Oleg.
Oleg Chernavin 10/04/2009 04:25 am
You are welcome!

Oleg.