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??
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
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!
<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"/>
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??
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
set to true in web.config
Cheers,
/Dirk
Hi Dirk,
Thanks for your reply can you kindly tell me where i have to append "?umbdebugshowtrace=true" ??
Append it on the url you're browsing to (eg www.site.com/page(.aspx)?umbdebugshowtrace=true
Cheers,
/Dirk
Hi Dirk i got this error,
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)
Hi Dirk i got this error,
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)
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
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 " "> ]>
<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) > 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>
Thanks Dirk i got solution and now my event calendar working perfectly but how i can add the events in calendar?
is working on a reply...