Copied to clipboard

Flag this post as spam?

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

  • singer777 69 posts 80 karma points
    Jul 12, 2012 @ 17:56

    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:


    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 "&#x00A0;"> ]>
     exclude-result-prefixes="msxml umbraco.library Atom"
    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:variable name="y" select="document('')"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">

    <xsl:for-each select="$y/rss/channel/item">
    <h2><xsl:value-of select="title"/></h2>

                        <xsl:value-of select="umbraco.library:FormatDateTime(./pubDate, 'MMMM d, yyyy')"/>
                        <xsl:value-of select="description"  disable-output-escaping="yes"/>

        <xsl:value-of select="Atom:content" disable-output-escaping="yes"/>

Please Sign in or register to post replies

Write your reply to: