tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/791-you-tube-xslt-formatCascade CMS: Discussion 2013-08-20T01:20:25Ztag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T11:51:38Z2013-04-25T11:51:38ZYou Tube XSLT Format<div><p>Hi Akbar,</p>
<p>When you have a moment can you also attach or paste the HTML
that is generated on the published Page from your last sceenshot?
Specifically, the area beneath the breadcrumbs.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T11:57:11Z2013-04-25T11:57:11ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>Please find it attached.</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T13:24:49Z2013-04-25T13:24:49ZYou Tube XSLT Format<div><p>Hi Akbar,</p>
<p>It looks like the video URL was invalid, of you attempt to go
directly to the URL in your source code it goes to an error page.
Try using this URL for your video and it should work:</p>
<p><a href=
"http://www.youtube.com/v/NoxiK7K28PU">http://www.youtube.com/v/NoxiK7K28PU</a></p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T14:59:53Z2013-04-25T14:59:53ZYou Tube XSLT Format<div><p>Ryan,</p>
<p>I just copied the URL from the browser's location window. And it
was playing. Did you get your URL from somewhere else within
YouTube. Or did you have to tweak the URL?</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T15:24:00Z2013-04-25T15:24:00ZYou Tube XSLT Format<div><p>Hi Akbar,</p>
<p>I got this URL from the Share tab when viewing the video, click
on <strong>Use old embed code</strong> to see the URL. Note: the
URL under the newer embed code does not work.</p>
<p>As an aside, what you could do to avoid this issue is to tweak
the Format so that all your user has to do is enter the video ID
(ie the portion after the <strong>v</strong>); however, you lose
some flexibility in terms of supplying any additional parameters
along with the video URL.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T17:20:28Z2013-04-25T17:20:28ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>You may close this support ticket.</p>
<p>Thanks for your help.</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-04-25T18:24:42Z2013-04-25T18:24:42ZYou Tube XSLT Format<div><p>Not a problem at all, Akbar. Glad to hear this updated URL did
the trick.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T16:40:16Z2013-06-10T16:40:16ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>I am having to reopen this ticket. I noticed today that the
YouTube format that was working fine has stopped working. And I
have changed nothing. I just heard from a user and went it to
check.</p>
<p>What should I send you so that you could help me debug this.</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T16:54:16Z2013-06-10T16:54:16ZYou Tube XSLT Format<div><p>I had planned on at least adding the XSLT. Here , it is.</p>
<p>BTW, this XSLT was working just fine as you can see from the
ticket when it was closed.</p>
<p>Not sure what caused it to stop working.</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T17:00:22Z2013-06-10T17:00:22ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>It seems the You Tube Video does not render if you are using
Chrome within Cascade. But it does play fine in Chrome when
published.</p>
<p>Please close this. Sorry for unncessarily opening the
ticket.</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T18:52:48Z2013-06-10T18:52:48ZYou Tube XSLT Format<div><p>Not a problem at all, Akbar. Curious, but did the videos work
previously within Cascade using Chrome? Perhaps there was an issue
with the YouTube URL being used?</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T19:09:08Z2013-06-10T19:09:08ZYou Tube XSLT Format<div><p>I had never used Chrome to create pages within Cascade. I
started using Chrome because the XML plugin for Chrome works
better.</p>
<p>The video works fine after being rendered within Chrome browser.
Just not within Cascade when using Chrome.</p>
<p>Thanks,</p>
<p>Akbar</p>
<p>From: Ryan Griffith [mailto:<a href=
"mailto:tender+d9e9d49530ae1c22a5338426ede5d2af5bfb99b1a@tenderapp.com">tender+d9e9d49530ae1c22a5338426ede5d2af5bfb99b1a@tenderapp.com</a>]<br>
Sent: Monday, June 10, 2013 2:53 PM</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T19:50:49Z2013-06-10T19:50:49ZYou Tube XSLT Format<div><p>Ah, ok. Could possibly be an issue with the
<code><obect></code> tag within the preview frame.</p>
<p>Also, I wanted to mention that you can use the Embed Media
button within the WYSIWYG to embed YouTube videos. I am pretty sure
the generated source works with Chrome, maybe you could take a look
at the generated source code and modify your XSLT to produce
similar HTML.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T19:53:00Z2013-06-10T19:53:00ZYou Tube XSLT Format<div><p>Thank you.</p>
<p>Akbar</p>
<p>From: Ryan Griffith [mailto:<a href=
"mailto:tender+d9e9d49530ae1c22a5338426ede5d2af5bfb99b1a@tenderapp.com">tender+d9e9d49530ae1c22a5338426ede5d2af5bfb99b1a@tenderapp.com</a>]<br>
Sent: Monday, June 10, 2013 3:51 PM</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-06-10T19:57:13Z2013-06-10T19:57:13ZYou Tube XSLT Format<div><p>Not a problem at all, Akbar.</p>
<p>Have a great day!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:15:49Z2013-07-01T15:15:49ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>I am sorry to be opening this ticket again. I am trying to build
a new format where I do not have to obtain Old EMBED code. I
embedded a Video using Media in WYSIWYG. I saw that it created an
IFRAME. So, I created the following Format:</p>
<p><?xml version='1.0' encoding='UTF-8'?><br>
<br></p>
<pre>
<code> <p>
<iframe frameborder="0" height="{$height}" src="{url}" width="{$width}"></iframe>
</p>
<xsl:copy-of select="content/node()"/></code>
</pre>
<p><a href="/xsl:template">/xsl:template</a> <a href=
"/xsl:stylesheet">/xsl:stylesheet</a></p>
<p>I included this format in page. As you can see, it is not
working:</p>
<p><a href=
"http://easbk.eas.purdue.edu/cs/video-test.html">http://easbk.eas.purdue.edu/cs/video-test.html</a></p>
<p>What am I doing wrong?</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:20:14Z2013-07-01T15:20:14ZYou Tube XSLT Format<div><p>And here is the video I am trying to embed:</p>
<p><a href=
"http://www.youtube.com/watch?v=DBIRDAm9vZ8&feature=BFa&list=ECA65CFA4609D1EBCD">
http://www.youtube.com/watch?v=DBIRDAm9vZ8&amp;feature=BFa&amp;list...</a></p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:24:37Z2013-07-01T15:24:37ZYou Tube XSLT Format<div><p>Hi Akbar,</p>
<p>It looks like the generated URL to your Youtube video is
incorrect, specifically the additional parameters within the URL.
Here is the URL I am seeing within your page's source code:</p>
<p>
<code>http://www.youtube.com/embed/DBIRDAm9vZ8&hl=en&fs=1&rel=0&color1=6392eb&color2=90b1f1</code></p>
<p>The first parameter should begin with <code>?</code> and not
<code>&</code>. Try the following URL and let me know how
things go:</p>
<p>
<code>http://www.youtube.com/embed/DBIRDAm9vZ8?hl=en&fs=1&rel=0&color1=6392eb&color2=90b1f1</code></p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:28:59Z2013-07-01T15:28:59ZYou Tube XSLT Format<div><p>Is that because there is something wrong with my XSLT? I am not
sure what it would be?</p>
<p>Any thoughts would be appreciated?</p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:43:06Z2013-07-01T15:43:06ZYou Tube XSLT Format<div><p>Hi Ryan,</p>
<p>Actually, the Format is supposed to generate an IFRAME code, the
kind that is created when when you EMBED a You Tube video using
WYSIWYG editor. I re-published the Test Video page. Now it
generates the IFRAME code but the src attribute comes out empty.
And that I think is my problem.</p>
<p><a href=
"http://easbk.eas.purdue.edu/cs/video-test.html">http://easbk.eas.purdue.edu/cs/video-test.html</a></p>
<p>Thanks,</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T15:50:36Z2013-07-01T15:50:36ZYou Tube XSLT Format<div><p>Hi Akbar,</p>
<p>I noticed the URL variable was being referenced incorrectly
within the iframe tag.</p>
<p><code><iframe frameborder="0" height="{$height}" src="{url}"
width="{$width}"></iframe></code></p>
<p>Should be:</p>
<p><code><iframe frameborder="0" height="{$height}" src="{$url}"
width="{$width}"></iframe></code></p>
<p>Note you must use the dollar sign when referencing
variables/parameters.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T19:20:22Z2013-07-01T19:20:22ZYou Tube XSLT Format<div><p>Thanks Ryan.</p>
<p>This may be closed. Hopefully, I will not have to re-open it
again.</p>
<p>Akbar</p></div>aehsantag:help-archives.hannonhill.com,2010-02-09:Comment/265540382013-07-01T19:32:08Z2013-07-01T19:32:08ZYou Tube XSLT Format<div><p>Thank you for the follow up, Akbar. Glad to here you were able
to get the Format working.</p>
<p>Have a great day!</p></div>Ryan Griffith