Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bambe 45 posts 66 karma points
    Apr 07, 2011 @ 07:42
    Bambe
    0

    GetXmlDocumentByUrl from youtube video statistics xml file

    Hi all,

    I reference the wiki http://our.umbraco.org/wiki/reference/umbracolibrary/getxmldocumentbyurl

    and try to analysis this xml file from youtube: http://gdata.youtube.com/feeds/api/videos/-7eOaHQtjqc

    my XSLT:

                    <xsl:variable name="getVideoXDUrl"> <!--get youtube video id-->
                      <xsl:text>http://gdata.youtube.com/feeds/api/videos/</xsl:text>
                      <xsl:value-of select="$getVideoId"/>
                    </xsl:variable> <!-- the result like this http://gdata.youtube.com/feeds/api/videos/-7eOaHQtjqc -->
                    <xsl:variable name="getVideoXD" select="umbraco.library:GetXmlDocumentByUrl($getVideoXDUrl)"/>
                    <xsl:for-each select="$getVideoXD">
                      <xsl:value-of select="/"/>
                    </xsl:for-each>

    and there have one row data

    so I want to search author name in entry/author/name

    but it appears none...

    and search viewCount at entry/yt:statistics

    the xslt compiler says Error occured, because has the ' : ' symbol

    I try to use &#58; instead of that symbol, the issue are the same

    how can I solve the issue?

    thx alot :)

     

    Regards,

    Bambe :)



Please Sign in or register to post replies

Write your reply to:

Draft