Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: DOCTYPE problem

  1. #1
    Fot
    Fot is offline
    Regular Coder
    Join Date
    Mar 2011
    Posts
    111
    Thanks
    88
    Thanked 0 Times in 0 Posts

    DOCTYPE problem

    I would like help because the validator cannot accept 2 DOCTYPEs.
    Thanks.
    Code:
    <!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">

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Fot View Post
    I would like help because the validator cannot accept 2 DOCTYPEs.
    Thanks.
    Code:
    <!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

  • Users who have thanked oesxyl for this post:

    Fot (04-19-2011)

  • #3
    Fot
    Fot is offline
    Regular Coder
    Join Date
    Mar 2011
    Posts
    111
    Thanks
    88
    Thanked 0 Times in 0 Posts
    I want to use svg elements( animation) inside a xhtml document in php page

    Code:
    <?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>

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Fot View Post
    I want to use svg elements( animation) inside a xhtml document in php page

    Code:
    <?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:
    Code:
    <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

  • Users who have thanked oesxyl for this post:

    Fot (04-19-2011)

  • #5
    Fot
    Fot is offline
    Regular Coder
    Join Date
    Mar 2011
    Posts
    111
    Thanks
    88
    Thanked 0 Times in 0 Posts
    This is an external as I can see.I need unfortunatly internal.Thanks.

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Fot View Post
    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

  • Users who have thanked oesxyl for this post:

    Fot (04-19-2011)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •