...

View Full Version : DOCTYPE problem



Fot
04-19-2011, 08:36 PM
I would like help because the validator cannot accept 2 DOCTYPEs.
Thanks.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

oesxyl
04-19-2011, 08:40 PM
I would like help because the validator cannot accept 2 DOCTYPEs.
Thanks.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
a document can't be in the same time xhtml and svg. What do you want to do? to use svg elements inside a xhtml document or to include a svg file inside a xhtml document?

best regards

Fot
04-19-2011, 08:48 PM
I want to use svg elements( animation) inside a xhtml document in php page



<?php header("Content-type: application/xhtml+xml");
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>

oesxyl
04-19-2011, 08:56 PM
I want to use svg elements( animation) inside a xhtml document in php page



<?php header("Content-type: application/xhtml+xml");
print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
that doesn't have anything with svg doctype.
you can include a svg file in any xhtml page using object element:


<object data="fot-animation.svg" codetype="image/svg+xml" style="width: 195px; height: 310px;"></object>

using php or something else doesn't matter too.

best regards

Fot
04-19-2011, 09:04 PM
This is an external as I can see.I need unfortunatly internal.Thanks.

oesxyl
04-19-2011, 09:08 PM
This is an external as I can see.I need unfortunatly internal.Thanks.
replace fot-animation.svg with the url to what generate the file, for example fot-animation.php.

best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum