Copied to clipboard

Flag this post as spam?

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


  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 16:31
    emaadali
    0

    cannot parse xslt file: /xslt/pdcalendar.xslt

    hi,

    i am new in umbraco and i developed almost my website using umbraco cms its quite easy to use it but i am stuck in event calendar,i install pdcalendar by using this link http://calendar.dijksterhuis.nu/documentation.aspx and completed steps by seeing its documentation from same link but when i run application it give error "cannot parse xslt file: /xslt/pdcalendar.xslt"

    is there anyone who can help me out to solve this problem??

  • Dirk De Grave 4539 posts 6013 karma points MVP 3x admin c-trib
    Jun 30, 2011 @ 16:46
    Dirk De Grave
    0

    Yup, first thing to do is append ?umbdebugshowtrace=true and find the error in the stack trace. Post back here so we can have a look at the error message to find out what's wrong.

    In order for the querystring to work, you need to have 

    <add key="umbracoDebugMode" value="true" />

    set to true in web.config

     

    Cheers,

    /Dirk

     

  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 17:11
    emaadali
    0

    Hi Dirk,

    Thanks for your reply can you kindly tell me where i have to append "?umbdebugshowtrace=true" ??

  • Dirk De Grave 4539 posts 6013 karma points MVP 3x admin c-trib
    Jun 30, 2011 @ 17:13
    Dirk De Grave
    0

    Append it on the url you're browsing to (eg www.site.com/page(.aspx)?umbdebugshowtrace=true

     

    Cheers,

    /Dirk

  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 17:47
    emaadali
    0

    Hi Dirk i got this error,

     

    umbracoMacro InnerException Cannot find the script or external object that implements prefix 'urn:pdcalendar'.
    Cannot find the script or external object that implements prefix 'urn:pdcalendar'.
      at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
      at System.Xml.Xsl.CompiledQuery.Query.messages(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in D:\Umbraco_4_5_2_for_NET_3_5\build\xslt\PDCalendar.xslt:line 15
      at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
      at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
      at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
      at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)
    0.00891959102461209 0.000440
  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 17:48
    emaadali
    0

    Hi Dirk i got this error,

     

    umbracoMacro InnerException Cannot find the script or external object that implements prefix 'urn:pdcalendar'.
    Cannot find the script or external object that implements prefix 'urn:pdcalendar'.
      at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
      at System.Xml.Xsl.CompiledQuery.Query.messages(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in D:\Umbraco_4_5_2_for_NET_3_5\build\xslt\PDCalendar.xslt:line 15
      at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
      at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
      at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
      at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt)
      at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, Hashtable pageElements)
    0.00891959102461209 0.000440
  • Dirk De Grave 4539 posts 6013 karma points MVP 3x admin c-trib
    Jun 30, 2011 @ 17:50
    Dirk De Grave
    0

    Ok, now show your xslt code (just the first few lines) and xsltExtensions.config cause this is most probably because the xslt extenions is not properly configured!

     

    Cheers,

    /Dirk

  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 17:58
    emaadali
    0

    Hi Dirk,

    This is xsltextension.config file code

    <?xml version="1.0" encoding="utf-8" ?>
    <XsltExtensions>
    </XsltExtensions>

    and my PDCalendar.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:exslt="urn:Exslt.ExsltCommon"
        xmlns:date="urn:Exslt.ExsltDatesAndTimes"
        xmlns:umbraco.library="urn:umbraco.library"
        xmlns:pdcalendar ="urn:pdcalendar"
        exclude-result-prefixes="msxml exslt date umbraco.library pdcalendar">


    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:variable name="messages" select="pdcalendar:GenerateDates('2009-01-01','2009-12-31','event')" />
    <!--
    In the registered version, you can use a startnode:
    <xsl:variable name="events" select="pdcalendar:GenerateDates($startdate,$enddate,'event',1050)" />
    -->
    <xsl:param name="currentPage"/>

    <xsl:template match="/">
    <ul>
    <xsl:for-each select="$messages/node">
    <xsl:if test="count(./event) &gt; 0">
    <li>
    <xsl:value-of select="@date"/>
    <ul>
    <xsl:for-each select="./event">
    <li>
    <a href="{umbraco.library:NiceUrl(@id)}">
    <xsl:value-of select="umbraco.library:GetXmlNodeById(@id)/@nodeName"/>
    </a>
    </li>
    </xsl:for-each>
    </ul>
    </li>
    </xsl:if>
    </xsl:for-each>
    </ul>
    </xsl:template>

    </xsl:stylesheet>

  • emaadali 56 posts 96 karma points
    Jun 30, 2011 @ 18:21
    emaadali
    0

    Thanks Dirk i got solution and now my event calendar working perfectly but how i can add the events in calendar?

Please Sign in or register to post replies

Write your reply to:

Draft