Copied to clipboard

Flag this post as spam?

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


  • Tony Strack 16 posts 96 karma points
    Oct 12, 2017 @ 13:10
    Tony Strack
    0

    Error parsing XSLT file: \xslt\BlogCategories.xslt

    Hey all. I'm new to Umbraco and came across an issue with the existing site. Here is the error I'm seeing on the page:

    Error parsing XSLT file: \xslt\BlogCategories.xslt

    I used debug mode to trace the error and am seeing this:

    umbracoMacro InnerException An error occurred while parsing EntityName. Line 4, position 52. An error occurred while parsing EntityName. Line 4, position 52. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(String res) at System.Xml.XmlTextReaderImpl.ParseEntityName() at System.Xml.XmlTextReaderImpl.ParseEntityReference() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at umbraco.editorControls.tags.library.getAllTagsInGroup(String group)

    Can anyone shed some light on what's happening here?

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Oct 22, 2017 @ 19:26
    Alex Skrypnyk
    0

    Hi Tony

    Welcome to our forum! What version of Umbraco are you using?

    Can you share the code of "\xslt\BlogCategories.xslt"?

    Thanks,

    Alex

  • Tony Strack 16 posts 96 karma points
    Oct 23, 2017 @ 15:00
    Tony Strack
    0

    Thanks, Alex!

    This is a custom version of Umbraco. It was white labeled, so the version number may be incorrect. It looks to be either v2 or v3.5? v2 was on the login screen, but that may be the customized Umbraco build. v3.5 was in the web.config file.

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Oct 24, 2017 @ 09:01
    Alex Skrypnyk
    0

    Hi Tony,

    It's very old version, can you show xslt code?

    Maybe we will help.

    Thanks,

    Alex

  • Tony Strack 16 posts 96 karma points
    Oct 24, 2017 @ 12:36
    Tony Strack
    0
    <?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:tagsLib="urn:tagsLib" exclude-result-prefixes="msxml umbraco.library tagsLib"><xsl:output method="html" omit-xml-declaration="yes"/><xsl:param name="currentPage"/><xsl:template match="/"> <h4>Categories</h4> <ul> <li><a href="{umbraco.library:NiceUrl($currentPage/@id)}">All</a> <span>&nbsp;(<xsl:value-of select="count($currentPage//node [@nodeTypeAlias='BlogPost'])"/>)</span></li><xsl:for-each select="tagsLib:getAllTagsInGroup('default')/tags/tag"> <li> <a href="{umbraco.library:NiceUrl(@id)}?filterby={current()}"><xsl:value-of select="current()"/></a> (<xsl:value-of select="@nodesTagged"/>) </li></xsl:for-each> </ul></xsl:template></xsl:stylesheet>
    
Please Sign in or register to post replies

Write your reply to:

Draft