Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 939 posts 2061 karma points
    Jan 25, 2011 @ 22:06
    Nigel Wilson
    0

    Error With Tag Cloud XSLT

    Hey

    Have just installed Blog4Umbraco on 4.5 version.

    The blog is working fine, except for the Tag Cloud page

    I am getting the following:

    Error reading XSLT file: \xslt\BlogTagcloud.xslt
    

    Using debug mode the following information is available:

        Error loading XSLT BlogTagcloud.xslt
    XSLT compile error.
      at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
      at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver)
      at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)
      at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
      at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
      at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
      at umbraco.macro.CreateXsltTransform(XmlTextReader xslReader, Boolean debugMode)
      at umbraco.macro.getXslt(String XsltFile)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)

    I have removed all XSLT coding and simply left a paragraph of static text but still get the same error. So I am assuming there is something wrong with the extensions.

    Can anyone enlighten me on where to start looking?

    Thanks
    Nigel

  • ridi 71 posts 103 karma points
    Feb 03, 2011 @ 02:21
    ridi
    0

    the temporary solution is unpublish the tag cloud on the content site, i got same problem and have no idea about the workaround

  • Owen Hope 119 posts 140 karma points
    Feb 16, 2011 @ 19:50
    Owen Hope
    0

    Can you post your XSLT for BlogTagCloud.xslt

  • Nigel Wilson 939 posts 2061 karma points
    Feb 16, 2011 @ 20:03
    Nigel Wilson
    0

    Hi Owen

    I have left the tag cloud out of the site I built - wasn't really a "must have" at this stage.

    Were you wanting working code to refer to or were you thinking you might be able to identify what was wrong ?

    The reason for asking is that I have another site to build that will require a tag cloud and so interested to find out the angle you are coming from.

    If I get this new site sorted with a tag cloud then I'd be only too happy to share findings / experiences.

    Cheers

    Nigel

  • ujwal shrestha 12 posts 32 karma points
    Mar 01, 2011 @ 03:26
    ujwal shrestha
    0

    Error reading XSLT file: \xslt\BlogTagcloud.xslt

    <?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:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary ">


        <xsl:output method="xml" omit-xml-declaration="yes"/>

        <xsl:param name="currentPage"/>

        <xsl:template match="/">
            <div class="tagcloud">
                <p>

                    <xsl:for-each select="tagsLib:getAllTags()/tags/tag">
                        <xsl:sort select="." order="ascending"/>
                        <href="{umbraco.library:NiceUrl($currentPage/ancestor-or-self::Blog/@id)}?filterby={.}">
                            <xsl:attribute name="class">
                                <xsl:choose>
                                    <xsl:when test="@nodesTagged &gt; 5">
                                        <xsl:value-of select="string('tagweight5')"  />
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <xsl:value-of select="concat('tagweight',@nodesTagged)"/>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </xsl:attribute>
                            <xsl:value-of select="."/>
                        </a>
                        <xsl:text</xsl:text>
                    </xsl:for-each>

                </p>
            </div>

        </xsl:template>

    </xsl:stylesheet>

     

    what is the problem here?

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Mar 01, 2011 @ 08:02
    Jan Skovgaard
    0

    Hi Ujwal

    What version of Umbraco are you using? And do you have any starter kits installed or just the blog4umbraco package?

    /Jan

  • Nigel Wilson 939 posts 2061 karma points
    Mar 04, 2011 @ 02:49
    Nigel Wilson
    0

    Hi there

    I have just discovered the problem thanks to this post.

    I have just opened "BlogTagCloud.xslt" in Notepad rather than Visual Web Developer.

    At the end of the file there was a square  (  ) displayed after the closing </xsl:stylesheet> tag. Removing this has solved the problem.

    I hope this helps others who have had similar frustrations.

    Nigel

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies