Copied to clipboard

Flag this post as spam?

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


  • rasb 162 posts 218 karma points
    Jan 15, 2010 @ 00:46
    rasb
    0

    Saving XSLT File Causes Crash

    Hi Guys,

    I am trying to save an XSLT file in the Developer Section. The problem is that it doesn't save or even give me an error. It just starts up a process called DW20.exe (maybe DR. Watson?!?) in 100% and then nothing works until i IISReset. Sometimes it starts multiple instances of DW20.exe

    I am running the latest stable build (4.0.3) on a Windows 2003 Server and an SQL Server 2000. .NET 2.0 and in a separate application pool. 

    When I get up and running again, I see a couple of new xslt file ending with _temp.xslt. Probably one for each time I tried to save.

    I get no stacktrace, and I have tried installing ELMAH, but no errors are reported there. I do get a warning in the Event Viewer:

    Event Type: Warning
    Event Source: W3SVC
    Event Category: None
    Event ID: 1011

    A process serving application pool 'umbraco' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '3476'. The data field contains the error number. 

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    The Xslt I am trying to save is this:

    <?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="/">
    
    <xsl:variable name="F1" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Feature1'])" />
    <xsl:variable name="F2" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Feature2'])" />
    <xsl:variable name="F3" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Feature3'])" />
    <xsl:variable name="F4" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Feature4'])" />
    <xsl:variable name="F5" select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Feature5'])" />
    
    
    <div id="home_featured"> 
    
        <div class="main_image"> 
            <img src="/images/dummy_l.jpg" alt="dummy" /> 
    
            <div class="desc"> 
                <a href="#" class="collapse">Close Me!</a> 
    
                <div class="block"> 
                    <h2><a href="/" title="Dummy">Dummy</a></h2> 
                    <small>July 15, 2009</small> 
                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin hendrerit odio a dui imperdiet volutpat sit amet vel diam. Class aptent taciti sociosqu ad litora ...<br /><a href="/" title="Dummy">Read More...</a></p> 
                </div> 
            </div> 
    
        </div> <!-- main_image --> 
    
    
        <div class="image_thumb"> 
        <ul>
            <xsl:apply-templates select="$F1" />
            <xsl:apply-templates select="$F2" />
            <xsl:apply-templates select="$F3" />
            <xsl:apply-templates select="$F4" />
            <xsl:apply-templates select="$F5" />
        </ul>
        </div> <!-- image_thumb --> 
    
    </div> <!-- home_featured --> 
    </xsl:template>
    
    <xsl:template match="node">
        <li> 
            <a href="/"><img src="dummy.jpg" alt="The Final Sample Post Title"/></a> 
    
            <div class="block"> 
                <h2><a href="/" title="Dummy">Dummy</a></h2> 
                <small>July 15, 2009</small> 
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin hendrerit odio a dui imperdiet volutpat sit amet vel diam. Class aptent taciti sociosqu ad litora ...<br /><a href="/" title="Dummy">Read More...</a></p> 
            </div> 
        </li> 
    </xsl:template>
    
    </xsl:stylesheet>
  • Colin Gemmell 2 posts 22 karma points
    Jan 20, 2010 @ 12:08
    Colin Gemmell
    0

    Hi rasb

     

    We were a similar problem here. It ended up finding out that GetXmlNodeById was not finding the node and producing and error "Node not found with id xxxx"

    Passing this into apply-templates then cased the all out crash. I suggest you check what $Fx is and ensure it is a proper xml node and not this error message.

    Hope this helps

    Colin

  • rasb 162 posts 218 karma points
    Jan 20, 2010 @ 14:14
    rasb
    0

    Hi Colin,

    Thanks for your reply. I have fixed the problem. It had to do with one of the properties on my Document Type, that I had to recreate apparently. For some reason it hadn't been created correctly. Once I renamed the property and name it back, then everything worked.

    /RasB

Please Sign in or register to post replies

Write your reply to:

Draft