Copied to clipboard

Flag this post as spam?

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


  • Arthur 1 post 21 karma points
    May 20, 2013 @ 10:31
    Arthur
    0

    Error parsing XSLT file

    Umbraco is working fine in my local enviroment. On preproduction server we have the error message on homepage:

    Error parsing XSLT file: \xslt\HomePageNavigation.xslt

    So threre are no homepage navigation displayed. This error message strikes not always, and i can't find the reason. Is there any way to debug the umbraco? And is there any solution except the reinstallation of umbraco?

    Here is my HomePageNavigation.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" 

        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">

       

       

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

       

      <xsl:param name="currentPage"/>

       

      <!-- Input the documenttype you want here -->

      <!-- Typically '1' for topnavigtaion and '2' for 2nd level -->

      <!-- Use div elements around this macro combined with css -->

      <!-- for styling the navigation -->

      <xsl:variable name="level" select="1"/>

       

      <xsl:template match="/">

       

      <!-- The fun starts here -->

      <ul>

          <xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']">

            <li >

              <a href="{umbraco.library:NiceUrl(@id)}">

            <xsl:if test="$currentPage/ancestor-or-self::*/@id = current()/@id">

              <!-- we're under the item - you can do your own styling here -->

              <xsl:attribute name="class">selected</xsl:attribute>

            </xsl:if>

            <xsl:value-of select="@nodeName"/>

          </a>

       

        </li>

          </xsl:for-each>

      </ul>

      </xsl:template>

      </xsl:stylesheet>

       

       

    •  

       

       

       

     

     

     

     

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 20, 2013 @ 11:09
    Jan Skovgaard
    0

    Hi Arthur and welcome to our :)

    You can see a stack trace with more information about the error by adding ?umbdebugshowtrace=1 to your url.

    Let us know what the detailed message says.

    /Jan 

  • Fuji Kusaka 2203 posts 4220 karma points
    May 20, 2013 @ 11:14
    Fuji Kusaka
    0

    This looks good to me. What version of umbraco are you using ? 

     

  • Charles Afford 1163 posts 1709 karma points
    May 20, 2013 @ 12:31
    Charles Afford
    0

    Check that all the properties in your local Umbraco are in the dev Umbraco?  Could this be the problem it cannot find the correct property?.  Charlie :)

  • 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