SVN commnad line

-----------------------------------------------------------------------


once you make changes then add .. 

svn add * --force

once done then commit 

svn commit -m "adding your comment "  --username agnellodsouza --password YOUR#PASS

get the latest rev number 
svn up


--
Regards
Agnello D'souza


Interactive YouTube API Demo Beta


http://gdata.youtube.com/demo/index.html

YouTube APIs and Tools

The YouTube APIs and Tools let you bring the YouTube experience to your webpage, application, or device. The Data API lets you perform most of the operations a normal YouTube user can on the YouTube website. The Player APIs let you control the YouTube player using JavaScript or ActionScript. You can also use the basic embedded player, which already contains player controls, or the chromeless player, which lets you create your own player controls.

Read more here  http://code.google.com/apis/youtube/getting_started.html

A video widget fro your blog

A video widget fro your blog

<div style="text-align:center;">
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/d9_kjdcA9Pc&amp;hl=en_US&amp;fs=1&amp;" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="http://www.youtube.com/v/d9_kjdcA9Pc&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="280" height="185">
</embed>
</object>
<div style="color:#FFFFFF;text-align:center;height:18px;margin-top:3px;">
<a href="http://www.lifewidget.com"></a>
</div>
</div>

Display CDATA with XSL

I've been playing around with it and there's something I can't figure out.

The XML is based of an RSS Feed. Here's a example of XML I am trying to play with.

<item>
   <title>Dinner at Chilis</title>
   <link></link>
   <description>
       [!CDATA[<div><b>Location:</b> Chilis </div>
                     <div><b>Start Time:</b> 4/21/2010</div>
                     <div><b>Description:</b> Dinner at Chilis </div>]]>
    </description>
</item>

Here's a part of the XSL I've been playing around.
<xsl:template match="item">
    <xsl:value-of select="title"/>
    <xsl:value-of disable-output-escaping="yes" select="substring-before(substring-after(description, ']]'), '[CDATA[') "/>
</xsl:template>

I'm not sure why it's not displaying the string.

My previous code was like this:
<xsl:template match="item">
    <xsl:value-of select="title"/>
    <xsl:value-of disable-output-escaping="yes" select="description"/>
</xsl:template>
It displays, but I won't have control on how to select the specific text in the description tag.

It's something I want to learn how to do it. I'm still a beginner in XSL so my apologies for being a newbie. Tongue out

EDIT*
Ok. I got it.
It displays only the first line though. lol. Here's the code I have right now.
<xsl:template match="item">
    <xsl:value-of select="title"/>
    <xsl:value-of disable-output-escaping="yes" select="substring-before(substring-after(description, '&lt;div&gt;'), '&lt;/div&gt;') "/>
</xsl:template>

So far so good. I'll play around a bit more.

Other Articles

Enter your email address: