dasjo Posted April 3, 2006 Share Posted April 3, 2006 hello!i've written a xslt file to display content provided by a rss feed on an asp.net site. all worked fine, but since i changed the rss feed provider i can't get it to work.OLD RSS <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <rss version="2.0" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:pbx="http://www.portalbuilder.org/schemas/sharepointlists"><channel> <pbx:ID>101b617e-15df-4ed2-98a7-56dfcb25f0c9</pbx:ID> <title>Announcements</title> <description>Use the Announcements list to post messages on the home page of your XSLT <?xml version="1.0" encoding="iso-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/"> I CAN GET THIS<xsl:for-each select="*">I CAN'T GET THIS<h1>a</h1></xsl:for-each> </xsl:template></xsl:stylesheet> NEW RSS <?xml version="1.0" encoding="iso-8859-1" ?> <rss version="2.0"><channel> <title>New Subscription</title> <description>RSS Feed generated by U2U RSS Feeds For Microsoft SharePoint 2003.</description> <link>http://www.u2u.net/</link> when parsing this rss feed, i can only get "I CAN GET THIS", as described in the xslt file above.anything that tries to get deeper into the the xml tree, like /rss doesn't work.this doesn't make sense. the only thing i see as a difference are the encoding. the OLD RSS is utf-8 encoded, while the NEW RSS is iso-8859-1 encoded.hope, anyone can tell what i do wrong =)thanks a lot in advance,greetz from vienna, josef Link to comment Share on other sites More sharing options...
boen_robot Posted April 3, 2006 Share Posted April 3, 2006 Perhaps it's the namespace... I recently encountered simmilar thing. Try giving the RSS it's namespaces back. Also, execuse me for my lasiness, but you might want to try "isolating" the problem first. Apply all different changes and removals one by one and see where the problem first arises. Link to comment Share on other sites More sharing options...
dasjo Posted April 7, 2006 Author Share Posted April 7, 2006 Perhaps it's the namespace... I recently encountered simmilar thing. Try giving the RSS it's namespaces back. Also, execuse me for my lasiness, but you might want to try "isolating" the problem first. Apply all different changes and removals one by one and see where the problem first arises.<{POST_SNAPBACK}> hello boen_robotthanks for your answer!what exactly do you mean by giving the RSS it's namespaces back?i tried to debug with XML SPY ... the interesting thing is, here I CAN access /rss/channel without a problem. so there must be some problem with my on-server xslt processor.i think it's something with encoding or maybe a namespace issue, but i don't know what the problem could be...-- edit ---getting the xslt processor version with http://www.mulberrytech.com/xsl/xsl-list/p...sor-version.xsl says Vendor: MicrosoftProcessor version: Original IE5 (or old version of other processor)Vendor:Vendor URL:XSLT Processor VersionVendor: Microsoft Processor version: Original IE5 (or old version of other processor)Vendor: Vendor URL:--- edit ---i found out, that there were some line-length-exceedings in the xml file which caused the problem. when i remove those lines everything works fine. so my xslt processor can't handle too-long-lines...now - how to get rid of those too-long-lines in asp? this isn't an xslt issue any more, but maybe someone can give me a hint!? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now