Hi Tim,

Thanks for your ongoing research! :)
I just realized that Jasha is on vacation this week (watching soccer and 
clicking around on www.onsoranje.nl I guess), so please don't feel sad if he's 
not answering right now.

If this works out in IE, I guess it would be a great fix for Hippo CMS 6!

Arjé

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of toolman
> Sent: maandag 9 juni 2008 12:26
> To: hippo-mailing-list
> Subject: [HippoCMS-dev] Relaxing XHTML restrictions 
> inhtmlarea/xinha/htmlcleaner etc.
> 
> Hey everybody;
> 
> Jasha (from Hippo) recently put up a "how to" on getting 
> YouTube videos into the CMS.  You can see that article here:
> 
> http://blogs.hippo.nl/jasha/2008/05/how_to_add_youtube_video_i
> n_hi_1.html
> 
> Thakn you for posting this, however it falls short in my 
> opinion, as you need to modify the copy-n-paste html snippet 
> that youtube provides in the right panel.  The long and short 
> is that the embed tag is not part of the XHTML spec.  
> 
> Our users don't want to mess about with HTML any more then 
> absolutely necessary, so I have found a solution to this!  
> First off, this is not Hippo endorse (yet?) so I can't make 
> any guarantees about it - but it works for me :)
> 
> The basic plan is to use a modified XHTML dtd that has the 
> desired tags.
> I used one sourced here:
> 
> http://www.yoyodesign.org/doc/dtd/xhtml1-embed.en.html
> 
> I checked out the htmlcleaner project from here:
> 
> http://svn.hippocms.org/repos/hippo/hippo-cocoon-extensions/ta
> gs/Release_HTMLCLEANER_v1_01_01/
> 
> and modified 
> nl.hippo.cocoon.htmlcleaner.XhtmlDescriptorBuilder to know 
> about the third DTD choice. (approx line 45).  I also had to 
> add a project.properties file that pointed to the (moved - 
> 301) maven repo.
> The content of that file is:
> 
> maven.repo.remote=http://repository.atlassian.com,http://mirro
> rs.ibiblio.org/pub/mirrors/maven,http://www.ibiblio.org/maven
> 
> 
> I then removed the reference to common-project in the maven 
> pom.xml, and it built the JAR (maven clean jar) fine.  This 
> replaces the one use by the CMS - you can update the CMS pom 
> and insert this jar into your own repo, or manually replace 
> it in "/cocoon/WEB-INF/lib".
> 
> Then change yout htmlcleanerconfig.xml to allow all the 
> required tags/attributes (embed, object etc.) and it works.. 
> in FireFox.
> 
> IE still seems to be stripping content (client side!), so I'm 
> working on why that is ATM.  Anyone got any ideas why xinha 
> is acting differently on IE? I'm wondering if IE is doing 
> some kind of XHTML check/parse of its own..
> 
> 
> Cheers,
> 
> 
> --
> Tim Taylor
> JTeam
> email: [EMAIL PROTECTED]
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to