Copied to clipboard

Flag this post as spam?

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


  • Daniel Lindstrom 454 posts 271 karma points
    Aug 28, 2009 @ 16:38
    Daniel Lindstrom
    0

    Error GetXmlDocumentByUrl consuming Umbraco Xslt RSS

    Hi

    I cannot get umbraco.library:GetXmlDocumentByUrl to work when trying to get a RSS feed from another page/site, the RSS feed being created by the RSS XSLT macro that comes with umbraco.

    I have tried several installations and sites with different content. It fails every time:

    Error parsing XSLT System.Xml.Xsl.XslCompiledTransform
    An error occurred during a call to extension function 'GetXmlDocumentByUrl'.

    Reading any other (valid) RSS feed works.

    I have tried fixing the RSS Xslt, that seems a bit broken by default according to http://validator.w3.org/feed/

    I fixed it so that it became a valid RSS feed according to the validator, but still no luck with GetXmlDocumentByUrl.

    Unfortunately I cannot provide links to the RSS feeds, according to the clients wish.

    Any ideas? Anyone experienced anything similar? Anyone care to do a quick test trying to consume an umbraco RSS feed with umbraco.library:GetXmlDocumentByUr?

    I have search the forums old and new but found nothing that explains this. I have made sure there are no blank lines messing up the content type declaration, as mentioned in some posts regarding the Umbraco Xslt macro.

    Very grateful for any input!

  • Daniel Lindstrom 454 posts 271 karma points
    Aug 28, 2009 @ 16:52
    Daniel Lindstrom
    0

    A wild guess, could the .aspx extension make the GetXmlDocumentByUrl fail? All the non-umbraco RSS feeds I have tried and found working has either no extension or an .rss extension. Can't seem to find any non umbraco feeds with .aspx extension to test with.

    And I cannot enable directoryUrls on these sites.

  • Chris Koiak 700 posts 2626 karma points
    Aug 29, 2009 @ 09:27
    Chris Koiak
    0

    The file extension shouldn't matter.

    Can you post the raw xml being returned from the RSS Xslt? This will help debug the problem.

    Check that you don't have any leading whitespace being generated in the rss file, this is a pretty common problem.

    Cheers,

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft