rvdokkum Posted June 3, 2011 Share Posted June 3, 2011 in my xml data there is a node containing the embed script for a video playerhow do i put this into my xsl filexml part with ''video-player'' <post><video-player><span id="video_player_6108595387">[<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Flash 10</a> is required to watch video.]</span><script type="text/javascript">renderVideo("video_player_6108595387",'http://mydomain.tumblr.com/video_file/6108595387/tumblr_lm64ngkwu81qjb4vj',400,225,'poster=http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lm64ngkwu81qjb4vj_frame1.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lm64ngkwu81qjb4vj_frame2.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lm64ngkwu81qjb4vj_frame3.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lm64ngkwu81qjb4vj_frame4.jpg,http%3A%2F%2Fmedia.tumblr.com%2Ftumblr_lm64ngkwu81qjb4vj_frame5.jpg')</script></video-player> my xsl failed attempt to use the ''video-player'': <div><xsl:value-of select="video-player" disable-output-escaping="yes"/></div> using the node with the ''audio-player'' works finexml part with audio player: <audio-player><embed type="application/x-shockwave-flash" src="http://assets.tumblr.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/5046352702/tumblr_lkffpeQVub1qjb4vj&color=FFFFFF" height="27" width="207" quality="best"></embed></audio-player> xsl using ''audio-player'' <div><xsl:value-of select="audio-player" disable-output-escaping="yes"/></div> Link to comment Share on other sites More sharing options...
Martin Honnen Posted June 3, 2011 Share Posted June 3, 2011 Again I suspect the XML input has escaped markup, otherwise your use of disable-output-escaping would not make sense. The only difference with your two samples I see currently is the use of script in the video sample. Which browsers are you trying your code with? Do you get any script errors displayed in the error console of your browser?Note also that Firefox/Mozilla does not support disable-output-escaping. Link to comment Share on other sites More sharing options...
rvdokkum Posted June 3, 2011 Author Share Posted June 3, 2011 Again I suspect the XML input has escaped markup, otherwise your use of disable-output-escaping would not make sense. The only difference with your two samples I see currently is the use of script in the video sample. Which browsers are you trying your code with? Do you get any script errors displayed in the error console of your browser?Note also that Firefox/Mozilla does not support disable-output-escaping.i target cross browser and cross platform.i get no error instead nothing is rendered by the xslt. where i expect my result it is empty.i will resolve the firefox bug later when i switch to server side parsing of the xslt. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.