Développement web indépendant à Montpellier

Publié le vendredi 15 mai 2009 11:38:20

Alternative Flash - solution XML/XSL

Nous avons vu dans de précédents articles qu'il était possible d'afficher des alternatives aux animations Flash dans le contenu , ces contenus sont souvent placés "en dur" par les webmaster. Quelle méthode pour une intégration dynamique ?

Lors de l'intégration d'animation Flash, on peut facilement placer des alternatives : que ce soit avec la méthode Flash Satay (utilisant la balise Object), ou la méthode SWFObject (utilisation du Javascript, comme sur ce site).

Placer ce contenu "en dur" n'est pas un problème si l'animation Flash est statique, c'est nettement plus problématique si l'animation va puiser son contenu dans un fichier XML externe.

Alternative Dynamique

Il apparaît que le plus commode en Flash est de puiser les informations dynamiques dans un fichier XML : de nombreuses librairies existent en Actionscript pour exploiter les données.

Afin de ne pas multiplier les sources de données (préconisé par la plupart des recommandation d'accessibilité Web), il paraît plus qu'évident qu'utiliser le même fichier XML que le Flash est préférable pour générer l'alternative : une manière simple pour la mettre en forme en HTML est d'utiliser .

La plupart des langages propose un processeur XSL : en , il suffit d'utiliser la version 5 pour y avoir accès en natif :

Imaginons l'intégration d'une animation SWF faisant appel à un fichier data.xml :

<object type="application/x-shockwave-flash" data="animation.swf" width="200" height="200">
         <param name="movie" value="animation.swf" />
         // Chargement du XML
         $sXml = file_get_contents('data.xml');
         $XML = new DOMDocument();
         $XML->loadXML( $sXml );
         // On lance XSLTproc
         $xslt = new XSLTProcessor();
         $XSL = new DOMDocument();
         $XSL->load( 'data.xsl', LIBXML_NOCDATA);
         $xslt->importStylesheet( $XSL );
         // Affichage du résultat
         print $xslt->transformToXML( $XML ); 

On obtient ainsi une alternative dynamique à notre animation Flash qui utilise la même source de donnée.

L'accessibilité n'est pas de proposer un contenu identique à chaque visiteur, mais de proposer un contenu équivalent; et un accès pour tous à l'information : le problème si l'on utilise des source de données différente, c'est de ne maintenir que l'une d'entre elle plus tard.

C'est pour cette raison qu'il faut toujours garder cette problématique de la source d'information à l'esprit. De la même manière, lorsque l'on propose des sous-titres de vidéo, il faut exploiter dans l'idéal le fichier de sous-titres pour générer son alternative...

Articles connexes

Notez cet article !

  • Actuellement 5 sur 5 étoiles
  • 1
  • 2
  • 3
  • 4
  • 5

Note : 4.8/5 (4 notes attribuées)

Merci d'avoir participé !

Vous avez déjà noté cette page, vous ne pouvez la noter qu'une fois !

Votre note a été changée, merci de votre participation !

Bonne résolution ! j'arrête d'alourdir mes pages avec des boutons de partage, mais vous pouvez continuer de partager :-)


  1. I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.

  2. robin | Thanks for your |

    Thanks for your whole work on this website. My mom take interest in doing research and it’s really easy to understand why. Most of us know all about the lively form you deliver rewarding strategies on your website and even improve response from other people about this point then our own simple princess is actually learning a great deal. Take pleasure in the remaining portion of the year. Your carrying out a really great job.

  3. Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers.

  4. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

  5. treasurebox | buy online items in Auckland Newzealand |

    We are providing you wide range of quality items in Newzealand Treasruebox provide you Bed Frames in Newzealand pets supplies and much more.

  6. Howdy, May I grab that photo and usage it on my website?

  7. Aw, i thought this was quite a nice post. In concept I must set up writing like this additionally – spending time and actual effort to make a great article… but exactly what do I say… I procrastinate alot through no means appear to go carried out.

  8. instagram | Integrate Instagram with Shopify |

    thank you

  9. https://s... | https://smmnewsandtips.wordpress.com/2018/10/24/free-views-on-your-instagram-videos/ |

    thnk you

  10. It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing.

  11. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.

  12. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.

  13. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.


  14. I truly cherished perusing your online journal. It was extremely very much composed and straightforward. Not at all like different online journals I have perused which are truly not that good.Thanks alot!http://...e-talk.com

  15. ricardbra... | Assignment Writing Service |

    I genuinely appreciated understanding it. Sitting tight for some more incredible articles like this from you in the nearing days

  16. mikejasso... | Finance Assignments Help Online |

    Hi buddy, your blog' s design is simple and clean and i like it. Your blog posts about Online Dissertation Help are superb. Please keep them coming. Greets!!

  17. At City West Locksmiths Melbourne offer 24 hours locksmith services or emergency locksmith Melbourne services. We offer excellent services for all of Melbourne, Werribee, Hoppers Crossing, Altona, Laverton, Geelong more areas.

  18. The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.

  19. Hi, I have scanned the greater part of your posts. This post is presumably where I got the most valuable data for my exploration. A debt of gratitude is in order for posting, possibly we can see more on this. Are you mindful of some other sites on this subject.

  20. Positive webpage, where did u think of the data on this posting?I have perused a couple of the articles on your site now, and I truly like your style. Much obliged and please keep up the powerful work.

  21. it was a brilliant opportunity to visit this sort of site and I am cheerful to know. much obliged to you such a great amount for allowing us to have this open door.

  22. lesa.prom... | business assignment help |

    Thank you for the marvellous blog. As business assignment help expert, I am so happy.

  23. Thank you for the remarkable post. Our essay homework help experts are really impressed to see this blog on flash solution.

  24. Thank you for the remarkable blog. Buy Assignment UK expert congratulates you for this informative blog. It is great to find a blog on flash solution.

  25. Webroot.com/safe- Experience next-generation Security level with Webroot on your all devices. Install and activate webroot from www.webroot.com/safe and don’t forget to run webroot safe scan to feel secure anywhere.webroot.com/safe is a computer security software program for Microsoft Windows users that combine software as a service cloud protection with traditional Antivirus and anti-spyware desktop technologies. Built into the suite is a two-way firewall, a registry cleaner, Email anti-spam, secure browsing, anti-phishing and a password management service. The suite was initially released on July 26, 2010, as the 2011 version of the product.


  26. Apkideas makes no representations, warranties, or assurances as to the accuracy.

  27. www.webroot.com/safe -24/7 technical support for Webroot antivirus, call us to get instant support on webroot installation issues Dial toll free 1-844-833-0610.

  28. Where to seek out webroot Key Code? The Webroot security package is simple to setup &amp; install at webroot.com/safe. Simply find 20-character alpha-numeric code that is...

  29. Web-root -24/7 technical support for Webroot antivirus, call us to get instant support on webroot installation issues Dial toll free 1-844-833-0610.

  30. Experience next generation Security level with Webroot in your all devices. Install and activate webroot from www.webroot.com/safe and don’t forget to run webroot safe scan to feel secure anywhere

  31. www.webro... | www.webroot.com/safe | webroot/safe - download (windows 10) |

    Webroot Support experts can lend their hand to download, install and update Webroot Spy Sweeper Antivirus on your system. We can also repair all errors that may crop up while installing and configuring Webroot Antivirus on your PC. We can help you detect and remove malicious threats, malware and spyware by performing a quick scan on all files and folders. With our robust technology, we can destroy suspicious programs and infected files from your system. Our antivirus experts can clean all online threats, including Trojan, root kits, key loggers, and worms in just single sweep. We can optimize your computer’s speed and efficiency and also protect it from being sluggish.

  32. welcome to avg.com/retail website With the development of the digital world, online protection is crucial. It is extremely important to protect your PCs, Mac, computers as well as mobile devices and tablets with avg.com/retail. This can be done with the help of effective internet security and anti-virus products from avg.com/retail that safeguards all devices used on digital platforms.

  33. Visit www.norton.com/setup for setup, download, reinstall, enter and activate your norton product key to setup your account.Step-by-Step guide for Norton setup key, Download &amp; installation from norton.com/setup website.

  34. Thank you for sharing the information! The idea of changing battery sounds better than waiting for the battery to recharging.

  35. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!

  36. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.

  37. Wow i can say that this is another great article as expected of this blog.Bookmarked this site..

  38. Wow i can say that this is another great article as expected of this blog.Bookmarked this site..

  39. hi was just seeing if you minded a comment. i like your website and the them you picked is super. I will be back.

  40. asdasd | Car Equity Loans Tampa |

    This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article.

  41. thanks great post please visit this : https:/...xx-videos/

  42. Happy Val... | Happy Valentines Day 2018 |

    Happy Valentines Day wishes , images , Wallpapers , Free Download ,

  43. Happy Ros... | Happy Rose Day 2018 Wishes for Girlfriend |

    Welcome Happy Rose Day 2018 , Cheers .

  44. This is a great article, that I really enjoyed reading. Thanks for sharing. -https://windows.how/ https:/...rator.com/

  45. Our locksmith near me 24/7 services are available to you on just a call away. If you are looking for locksmith car keys replacement then contact us we are just a call away from you. Our team of friendly, highly skilled call center representatives is trained to help connect you with a locksmith tech who can handle all types of 24 Hour Residential Locksmith services. If you don’t require the services of an Professional Emergency Locksmith, but looking for a suitable quote for any service you need, do let us know.


  46. himanshu | Ramadan wishes images 2018 |

    <a href="http://...gt;Ramadan Kareem Wishes</a>
    <a href="http://...gt;Ramadan Wishes 2018</a>
    <a href="http://...gt;Ramadan Lattest Wishes 2018</a>

  47. Facebook Auto Liker

  48. Save Instagram Photos

  49. sf@gmail.com | brian holm lawyer san diego |

    The blog is composed in basic English with no yearning towards writing.

  50. Nice post Thanks for sharing this awesome post This New Year


  51. happy new... | happy new year 3d wallpaper |

    i love your posts very much. keep posting them

  52. http://ww... | http://www.accountingassignments.help/ |

    Great Information,it has lot for stuff which is informative. I will share the post with my friends.

  53. My friend recommended this blog and he was totally right keep up the fantastic work!

  54. http://ww... | http://www.agenslutena.com/penyebab-retina-lepas-ablasio-retina-obat-ampuh-tanpa-operasi/ |
  55. Happy New... | Happy New Year 2018 Wallpapers |

    whoah this blog is magnificent i really like reading your posts. Keep up the great work! You know, lots of people are searching around for this info, you could aid them greatly.

  56. Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!

  57. There exists a portal, through which people who work for CVS can access delegated management services. That too is the portal through which people who work for CVS can access training modules. As a reputable pharmacies and drug stores chain, CVS endeavors to have uniform (high) standards across all its outlets. One way in which it is able to achieve this is by having a standardized (and continuous) training scheme for all its workers. Through the training scheme, the employees are able to have proper understanding of CVS operating guidelines, HR policies and so on. Nowadays, the CVS training scheme is accessible online, alongside CVS delegated management services — through the CVS Learnet website.

  58. Diet pills are for people who want to lose weight but do not have the time to exercise or are unable to change to a healthier diet program.

  59. Download Free Happy New Year 2018 Wallpapers, Images. Check out Happy New Year 2018 wishes.

  60. Download Free Happy New Year 2018 Wallpapers, Images. Check out Happy New Year 2018 wishes.

  61. Safari browser automatically prevents websites from tracking or tracing the activities of the users on MAC, iPhone or iPad

  62. I would like to say that this blog really convinced me to do it! Thanks, very good post.

  63. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

  64. home reme... | home remedies for sore throat during pregnancy |

    I think this is a really good article. You make this information interesting and engaging. home remedies for sore throat during pregnancy You give readers a lot to think about and I appreciate that kind of writing.

  65. I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work.

  66. homemade... | homemade remedies for sore throat |

    wow, great, It is wonderful content has been published at this plat form. homemade remedies for sore throat Now own words needs to know any informative information then will absolutely recommend your website where can accurately knowledge can consider.

  67. Hi I found your site by mistake when i was searching yahoo for this acne issue, I must say your site is really helpful I also love the design, its amazing!. I don’t have the time at the moment to fully read your site but I have bookmarked it and also add your RSS feeds. I will be back in a day or two. thanks for a great site.

  68. Your blogs and information attracts me to come back again n again.

  69. Its getting really exciting to know every years colour, and people are getting more excited about this. We have see last year, many new products launched with the year's colour, fashion shows conducted theming that specail colour. All seems to be lot of fun.

  70. I wish more writers of this kind of substance would take the time you did to explore and compose so well. I am extremely inspired with your vision and knowledge.

  71. That's the very nice post you have shared with us. I really liked it. Please keep sharing more and more information.

  72. Good event, I think because to have a necessary books is very important for every profession, especially, for writers who make your life easier everywhere.

  73. Cheap Bus... | Cheap Business Flyer Printing |

    As far as advertising is concerned, cheap printed promotions still doing the rounds as a prominent mode of advertising

  74. diherbal | diherbal |

    It's actually a nice and useful piece of information. I am satisfied that you just shared this useful info with us. Please stay us up to date like this. Thanks for sharing. http://...ly/1F3xuVL

    Great submit, very informative. I wonder why the opposite experts of this sector do not realize this. http://...A3k30c5pJr

    You must continue your writing. I am confident, you have a great readers' base already! http://...ly/2r5vFU4

  75. bliherbal | bliherbal |

    I found useful information on this topic as I will be working on a company project. Thanks a lot posting relative information and it's currently becoming easier to complete this project http://goo.gl/y8vhnC

    We are currently implementing an assignment and I have been exploring your blog for several hours. I'm appreciate your it proved beneficial for me. http://...AGm30bV3ja

    I most likely appreciating every single of the idea. is actually an incredible and decent impart. I need to much obliged. Great employment! You all an incredible page, and have some extraordinary substance. http://goo.gl/611s7t

  76. Chromecast is a completely fledged gadget fit for gushing substance from different sources over the web

  77. garageband for pc If you all are thinking of what GarageBand is then i would like tell you people that garageband for windows is another popular music application

  78. I have listed some of the features of IMO

  79. If you want to grab amazon gift card codes online from here then visit our webpage and get it.

  80. There are really amazing website for amazon gift card codes online.

  81. On this amazing accident you can Free Download Happy New Year 2018 HD Wallpapers, Images from our website page.

  82. Here TricksCentral is a place where we will share latest Android Tricks, <a href="http://...t;internet tips</a>, iOS apps, Android Apk Downloads and more.

  83. Download the latest <a href="http://...gt;showbox apk</a> for Android! Showbox is a free app that allows users to download or stream the latest tv shows, movies.