Copied to clipboard

Flag this post as spam?

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


  • North Krimsly 59 posts 80 karma points
    Sep 17, 2010 @ 20:03
    North Krimsly
    0

    Xslt (written for 4.0) not working after install of 4.5

    Greetings all,

    I've done a clean install of 4.5 which seemed to work.  Now, I'm adding my xslt scripts which were written for 4.0.  I get "Error occured [xsltErrorNoNodesPublished]" when I try to save an xslt file.  However there's no description of what the error is.  Is there a migration guide or some other way to get help in updating my xslt files so they will work with Umbraco 4.5?  Here is an example file that won't save.  Thanks for any suggestions you can give me.

    -NorthK

    <?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"/>

    <xsl:template match="/">
      <ul>
          <xsl:choose>
          <xsl:when test="$currentPage/@nodeName = 'portfolio' ">
            <li><a class="current-page" href="/portfolio">&#x25BA;portfolio</a></li>
          </xsl:when>
          <xsl:otherwise>
            <li><a href="/portfolio">portfolio</a></li>
          </xsl:otherwise>        
        </xsl:choose>

        <xsl:choose>
          <xsl:when test="$currentPage/@nodeName = 'about' ">
            <li><a class="current-page" href="/about">&#x25BA;about</a></li>
          </xsl:when>
          <xsl:otherwise>
            <li><a href="/about">about</a></li>
          </xsl:otherwise>        
        </xsl:choose>

          <xsl:choose>
          <xsl:when test="$currentPage/@nodeName = 'contact' ">
            <li><a class="current-page contact-link" href="/contact">&#x25BA;contact</a></li>
          </xsl:when>
          <xsl:otherwise>
            <li><a class="contact-link" href="/contact">contact</a></li>
          </xsl:otherwise>        
        </xsl:choose>
      </ul>
    </xsl:template>

    </xsl:stylesheet>
  • Tom Fulton 2030 posts 4998 karma points c-trib
    Sep 17, 2010 @ 20:29
    Tom Fulton
    0

    The error means you have no nodes published.

    To fix, create a node and publish it in the Content section, or check the "Skip testing (ignore errors)" checkbox

  • North Krimsly 59 posts 80 karma points
    Sep 17, 2010 @ 23:02
    North Krimsly
    0

    Thanks Tom,

    I didn't know there had to be content created before I could save xslt files...

    -NorthK

Please Sign in or register to post replies

Write your reply to:

Draft