Re: [Hypercontent-users] Embeding movies
Brought to you by:
alexvigdor
From: Adam C. <ac...@co...> - 2007-03-20 12:37:34
|
Thanks Alex, you beat me to it. Adam On 3/20/07 8:11 AM, "Alex Vigdor" <al...@bi...> wrote: > Hi Carl, > You're close, try adding this template: > > <xsl:template match="rawhtml"> > <xsl:value-of select="." disable-output-escaping="true"/> > </xsl:template> > > The disable-output-escaping attribute will allow the user-entered > tags to pass through. > > Cheers, > Alex > > On Mar 20, 2007, at 8:01 AM, Carl P Barrow wrote: > >> Adam, >> >> So...I set things up as follows but it's actually showing the code >> rather that the video. Am I just going about it the wrong way? >> >> DTD >> <!ELEMENT rawhtml (#PCDATA)> >> >> XSL >> <xsl:template name="rawhtml"> >> <xsl:apply-templates select="/cms:wrapper/cms:source/page/ >> rawhtml"/> >> </xsl:template> >> >> <xsl:call-template name="rawhtml"/> >> >> >> >> ************************************* >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> >> http://www.hull.ac.uk/cms >> ************************************* >> >> -----Original Message----- >> From: hyp...@li... >> [mailto:hyp...@li...] On Behalf Of >> Carl P Barrow >> Sent: 20 March 2007 09:43 >> To: Adam Carl; Hypercontent-users List >> Subject: Re: [Hypercontent-users] Embeding movies >> >> Thanks Adam, I hadn't though of that. I'll take a look. >> >> What time is it there? Must be awfully early! >> >> ************************************* >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> >> http://www.hull.ac.uk/cms >> ************************************* >> >> -----Original Message----- >> From: Adam Carl [mailto:ac...@co...] >> Sent: 20 March 2007 09:39 >> To: Carl P Barrow; Hypercontent-users List >> Subject: Re: [Hypercontent-users] Embeding movies >> >> Carl, >> >> The html is strippied out by the wysiwyg editor right? I would just >> create another dtd element called rawhtml and tell the xsl to spit it >> out exactly as shown. Of couse the entry box will not show a wysiwyg >> editor but a user is really not supposed to change that kind of html >> anyway. Just a thought. >> >> Adam >> >> Adam Carl >> CUIT Webservices >> >> -----Original Message----- >> From: Carl P Barrow [mailto:C.P...@hu...] >> Sent: Tuesday, March 20, 2007 05:22 AM Eastern Standard Time >> To: Hypercontent-users List >> Subject: Re: [Hypercontent-users] Embeding movies >> >> Hi Alex, >> >> Did you have a chance to look at the below email. I'm being asked >> about >> this a lot. >> >> Cheers >> Carl >> >> ************************************* >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> >> http://www.hull.ac.uk/cms >> ************************************* >> ________________________________ >> >> From: hyp...@li... >> [mailto:hyp...@li...] On Behalf Of >> Carl Barrow >> Sent: 07 March 2007 14:33 >> To: Hypercontent-users List >> Subject: [Hypercontent-users] Embeding movies >> >> Hi Alex, >> >> One of my users here wants to embed a move taken from YouTube into one >> of their web pages. The problem is that the code is stripped out when >> the content is saved. Where can I tell the system not to strip it out? >> >> Code would be as follows: >> >> <object width="425" height="350"><param name="movie" >> value="http://www.youtube.com/v/QF7RRBZYfko"></param><param >> name="wmode" >> value="transparent"></param><embed >> src="http://www.youtube.com/v/QF7RRBZYfko" >> type="application/x-shockwave-flash" wmode="transparent" width="425" >> height="350"></embed></object> >> >> Cheers >> Carl >> >> ************************************* >> Carl Barrow >> Systems Integrator >> e-Services >> The University of Hull >> Cottingham Road >> Hull >> HU6 7RX >> Ext. 6838 >> >> http://www.hull.ac.uk/cms >> ************************************* >> ********************************************************************** >> ******************* >> To view the terms under which this email is distributed, please go >> to http://www.hull.ac.uk/legal/email_disclaimer.html >> ********************************************************************** >> *******************--------------------------------------------------- >> ---------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV________________________________ >> _______________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |