Copied to clipboard

Flag this post as spam?

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


  • Katlynn 18 posts 89 karma points
    Aug 29, 2019 @ 22:13
    Katlynn
    0

    Hi there! We recently received the following error on our homepage (running Umbraco 6):

    Error parsing XSLT file: \xslt\Social/LatestTweets.xslt
    

    The related XSLT hasn't been touched in over a year, and this was working fine just last month, according to the wayback machine. The code is below. Any ideas?

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <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" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:umbraco.contour="urn:umbraco.contour" xmlns:Social.FlickrGalleries="urn:Social.FlickrGalleries" xmlns:Social.Twitter="urn:Social.Twitter" xmlns:ucomponents.cms="urn:ucomponents.cms" xmlns:ucomponents.dates="urn:ucomponents.dates" xmlns:ucomponents.email="urn:ucomponents.email" xmlns:ucomponents.io="urn:ucomponents.io" xmlns:ucomponents.media="urn:ucomponents.media" xmlns:ucomponents.members="urn:ucomponents.members" xmlns:ucomponents.nodes="urn:ucomponents.nodes" xmlns:ucomponents.random="urn:ucomponents.random" xmlns:ucomponents.request="urn:ucomponents.request" xmlns:ucomponents.search="urn:ucomponents.search" xmlns:ucomponents.strings="urn:ucomponents.strings" xmlns:ucomponents.urls="urn:ucomponents.urls" xmlns:ucomponents.xml="urn:ucomponents.xml" xmlns:PS.XSLTsearch="urn:PS.XSLTsearch" 
        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Examine umbraco.contour Social.FlickrGalleries Social.Twitter ucomponents.cms ucomponents.dates ucomponents.email ucomponents.io ucomponents.media ucomponents.members ucomponents.nodes ucomponents.random ucomponents.request ucomponents.search ucomponents.strings ucomponents.urls ucomponents.xml PS.XSLTsearch ">
    
    
    <xsl:output method="xml" omit-xml-declaration="yes"/>
    
    <!-- Parameters -->
    <xsl:variable name="count" select="number(/macro/count)" />
    <xsl:variable name="username" select="/macro/username" />
    <xsl:variable name="token" select="/macro/token" />
    <xsl:variable name="tokenSecret" select="/macro/tokenSecret" />
    <xsl:variable name="consumerKey" select="/macro/consumerKey" />
    <xsl:variable name="consumerSecret" select="/macro/consumerSecret" /> 
    <xsl:param name="currentPage"/>
    
    <xsl:template match="/">
    
    
    
        <xsl:variable name="latestTweets" select="Social.Twitter:latestTweets($count, $username, $token, $tokenSecret, $consumerKey, $consumerSecret)/tweets/*"/>
        <xsl:for-each select="$latestTweets">
        <p><xsl:value-of disable-output-escaping="yes" select="content"/></p>
        </xsl:for-each>
    
    
    
    </xsl:template>
    
    </xsl:stylesheet>
    
  • Alex Skrypnyk 5367 posts 19805 karma points MVP 3x admin c-trib
    Aug 29, 2019 @ 22:32
    Alex Skrypnyk
    0

    Hi Katlyn

    "Error parsing XSLT file" usually means that there is a syntax error in your XSLT file. Often these can be difficult to pinpoint.

    Try adding "?umbDebugShowTrace=true" query string to your page URL, maybe you will get more info about this error.

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to:

Draft