I am trying to grab an image gallery feed from picasaweb.. for my webpage,.. I've allready made a Wordpress fread reader http://laikaslair.dk/developer.aspx, but this picasa gallery feed is pulling my teath ,..
Ok.little bit progress here,.. i've noticed that the picase feed is not a RSS feed but an Atom feed,.. that could explain why i cant' parse it like I've done many times before.. .. Have anyone parsed this kind of format with XSLT,.. ?
where $feedContentXML holds the feed.. the wired thing is that <xsl:copy-of select="count(./atom:link)"/> gives number 3, where as [<xsl:copy-of select="./atom:link[@rel = 'alternate']"/>] is somehow results in emty result(i've checked the feed there is an url in there).. and finally <xsl:copy-of select="count(./atom:link[@rel = 'alternate'])"/> gives a predictable 1..
reading rss feed from picasaweb.. ??
Hello fellow developers..
I am trying to grab an image gallery feed from picasaweb.. for my webpage,.. I've allready made a Wordpress fread reader http://laikaslair.dk/developer.aspx, but this picasa gallery feed is pulling my teath ,..
Her is a link to the feed,..
http://picasaweb.google.com/data/feed/base/user/101138924987420528379 ;
And her's how i've implemented my reader
In my mind the "<xsl:copy-of select="count($feedContentXML//entry)"/>" code should render number 3 but the only thing i'm getting is 0.
and <xsl:copy-of select="$feedContentXML"/> renders the whole feed,.. ass it should
There's something i am missing.. )c:,
Suggestions plz..
Ok.little bit progress here,.. i've noticed that the picase feed is not a RSS feed but an Atom feed,.. that could explain why i cant' parse it like I've done many times before.. .. Have anyone parsed this kind of format with XSLT,.. ?
Wel ofcourse you need to include the atom namespace etc..
This link might be usefull to you
http://snippets.dzone.com/posts/show/1162
i did exactly that and added this to the top og my code
xmlns:atom="http://www.w3.org/2005/Atom/"
xmlns:media="http://search.yahoo.com/mrss/"
thanks
But the feed is till fighting back (c:
when i am probing for a special link item like this,..
<xsl:value-of select="./atom:link[@rel = 'alternate']"/>
i am getting Zilch but i can see there is at least three links in an entry
<xsl:value-of select="count(./atom:link)"/>
weired,..
if u want us to help you need to give some example code. Also the link to xml doesnt work.
But,i guess your code is something like this right?
<xsl:for-each select="./atom:link[@rel = 'alternate']">
<xsl:value-of select="."/>
</xsl:for-each>
sorry i was a bit tired at that moment ..
where $feedContentXML holds the feed.. the wired thing is that <xsl:copy-of select="count(./atom:link)"/> gives number 3,
where as [<xsl:copy-of select="./atom:link[@rel = 'alternate']"/>] is somehow results in emty result(i've checked the feed there is an url in there).. and finally <xsl:copy-of select="count(./atom:link[@rel = 'alternate'])"/> gives a predictable 1..
hi all,..
this seems to do the trick..
it returns all the expected Url's ..
thanx for all the help ,.. (c:
and happy coding..
is working on a reply...