bước 1:
Bạn cần có file .xslt như sau: ví dụ file .xslt của bạn có tên youtube-transform.xslt
<?xml version=”1.0″ encoding=”utf-8″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”
xmlns:msxsl=”urn:schemas-microsoft-com:xslt”
xmlns:media=’http://search.yahoo.com/mrss/’
xmlns:yt=’http://gdata.youtube.com/schemas/2007′
exclude-result-prefixes=”msxsl”>
<xsl:output method=”xml” omit-xml-declaration=”yes” indent=”yes”/>
<xsl:template match=”/”>
<xsl:element name=”items”>
<xsl:for-each select=”/rss/channel/item”>
<xsl:element name=”item”>
<xsl:attribute name=”title”>
<xsl:value-of select=”title”/>
</xsl:attribute>
<xsl:attribute name=”videoId” >
<xsl:value-of select=”media:group/yt:videoid”/>
</xsl:attribute>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
bước 2: vui lòng chờ…………….