Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Location
    Vancouver, WA, USA
    Posts
    8

    Default XHTML with Xara Flash Fails Validation?

    Hello,

    I have a webpage using XHTML and when I embed the Xara Flash file using the HTML provided it does not validate when checked at http://validator.w3.org/.

    When I look at the HTML code it seems that is is 4.0 HTML and not XHTML but I can't change the whole site just for this.

    Can anyone tell me how to modify it to be compliant with standards and yet still work?

    Thanks!

    Michael
    IP

  2. #2

    Default Re: XHTML with Xara Flash Fails Validation?

    Hi Michael,

    I’ve cleaned the code up to make it XHTML compliant, but the main problem is that we need to lose the ‘embed’ element to validate.

    There's an interesting article at http://alistapart.com/articles/flashsatay covering the problems with this area.

    The code below validates with the XHTML 1.0 Transitional doctype:

    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="114" height="102">
    <param name="movie" value="xarDB.swf" />
    <param name="quality" value="high" />
    <param name="menu" value="true" />
    </object>

    I'll give the various other doctypes a try and make sure it validates in as many as possible...

    We should then be able to get the fixed XHTML into the CD.

    Marc
    IP

  3. #3
    Join Date
    Dec 2006
    Location
    Vancouver, WA, USA
    Posts
    8

    Default Re: XHTML with Xara Flash Fails Validation?

    Hi Marc,

    thanks for cleaning up the code. That helps a lot.

    Michael
    IP

  4. #4

    Default Re: XHTML with Xara Flash Fails Validation?

    Hi Michael,

    That snippet will validate in all the doctypes below and we've updated Pro to output the cleaned up version (this should be on the CD). However, to validate, the EMBED tag will still need to be removed, unfortunately this breaks compatibility with some browsers.

    XHTML 1.0:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    HTML 4.01:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

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

    Marc
    IP

  5. #5
    Join Date
    Dec 2006
    Location
    Vancouver, WA, USA
    Posts
    8

    Default Re: XHTML with Xara Flash Fails Validation?

    That is helpful. Thanks!
    IP

 

 

Bookmarks

Posting Permissions

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