I have successfully installed Feedcache three times now, all with a WordPress blog. Now I am trying to do it for a Facebook feed.
My code is below. It is giving me the following XSLT error when I try to save the XSLT, but it goes away if I use another XML URL at top of my XSLT:
THE ERROR:
System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'. Line 9, position 111.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean
isInAttributeValue, EntityExpandType expandType, Int32&
charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
at System.Xml.Xsl.Runtime.XmlQueryContext.GetDataSource(String uriRelative, String uriBase)
XSLT Error
I have successfully installed Feedcache three times now, all with a WordPress blog. Now I am trying to do it for a Facebook feed.
My code is below. It is giving me the following XSLT error when I try to save the XSLT, but it goes away if I use another XML URL at top of my XSLT:
THE ERROR:
System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'. Line 9, position 111.
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at System.Xml.Xsl.Runtime.XmlQueryContext.ConstructDocument(Object dataSource, String uriRelative, Uri uriResolved)
at System.Xml.Xsl.Runtime.XmlQueryContext.GetDataSource(String uriRelative, String uriBase)
MY XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library Atom"
xmlns:Atom="http://www.w3.org/2005/Atom">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:variable name="y" select="document('http://www.MYSITE.com/facebook.xml')"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:for-each select="$y/rss/channel/item">
<p>
<h2><xsl:value-of select="title"/></h2>
<em>
<xsl:value-of select="umbraco.library:FormatDateTime(./pubDate, 'MMMM d, yyyy')"/>
</em><br/><br/>
<xsl:value-of select="description" disable-output-escaping="yes"/>
<xsl:value-of select="Atom:content" disable-output-escaping="yes"/>
</p><hr/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
is working on a reply...