1) The XML seems to be a different format from what you are expecting, ie nodes are called entry with different attributes so i'm guessing it's changed since the demo you are following.
2) You need to include the atom namespace so that you can access the nodes and attributes
XSLT Flickr error
I’ve used the xslt example from Kasperb (http://old.kasperb.dk/2006/6/26/display-your-flickr-images-on-your-umbraco-driven-website.aspx) to show images from Flickr on my site.
After setting the url (http://api.flickr.com/services/feeds/photoset.gne?set=72157624035183498&nsid=42415310@N08&lang=en-us) on the xslt instead of the macro parameter I get the following error on the variable (<xsl:variable name="url" select="http://api.flickr.com/services/feeds/photoset.gne?set=72157624035183498&nsid=42415310@N08&lang=en-us" />):
Expected end of the expression, found ‘:’. httpà:ß //api.flickr.com/services/feeds/…
I’ve also added the <!ENTITY amp "&"> on the xslt.
Does somebody knows what's going wrong?
Try putting the url in single quotes?
Matt
Thank you Matt that helped, but now I don't get an error, but I also don't get any results back. Here is the XSLT my colleague wrote:
Couple of things.
1) The XML seems to be a different format from what you are expecting, ie nodes are called entry with different attributes so i'm guessing it's changed since the demo you are following.
2) You need to include the atom namespace so that you can access the nodes and attributes
Try the following:
Matt
is working on a reply...