Being a newbie using Umbraco I'm stuck with a little problem when it comes to getting all the entries for my Comment Form.
Creating the form works like a charm, but I get "Error parsing XSLT file: \xslt\TestList.xslt" when I want to see my entries.
In my .cshtml file: @Umbraco.RenderMacro("TestList")
Creating a clean XSLT-file also works (no entries beeing rendered that is), but as soon as I'm adding this line it all breaks: <xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage($currentPage/@id)" />
Do you mind sharing all of your XSLT code with us? If you're using Umbraco 4 you can add ?umbdebugshowtrace=1 to the url of the page where you get the rendering error and then see a stack trace that might reveal some useful information.
Otherwise if you're using 6+ then you can go to the /app_data/logs file and see if there is an error description so it's a bit easier to figure out what the issue perhaps is.
Looking at the logs file gives me "Cannot find a script or an extension object associated with namespace 'urn:umbraco.contour'". I thought the install would give me all references needed?
By the first glance the above looks correct to me and usually that error is only thrown when namespaces are missing etc. but it looks perfectly fine to me.
What version of Umbraco are you using and what version of Contour are you using?
Perhaps an upgrade can solve your current issue? Think it's worth the try. Remember to do a backup of the database and your files before doing it though.
Trying to upgrade now... Should these downloaded files be placed in the /umbraco folder or /umbraco/plugins/umbracoContour? I can't seem to find any files matching the ones I'm unpacking since I'm supposed to replace the existing ones.
Thanks Dennis. The issue for me is just where to put the extracted files? I'm supposed to replace my existing ones and I can't seem to find them for some reason.
Error parsing XSLT file for entries
Hi
Being a newbie using Umbraco I'm stuck with a little problem when it comes to getting all the entries for my Comment Form.
Creating the form works like a charm, but I get "Error parsing XSLT file: \xslt\TestList.xslt" when I want to see my entries.
In my .cshtml file: @Umbraco.RenderMacro("TestList")
Creating a clean XSLT-file also works (no entries beeing rendered that is), but as soon as I'm adding this line it all breaks:
<xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage($currentPage/@id)" />
I've added this section to my stylesheet as well:
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" xmlns:umbraco.contour="urn:umbraco.contour"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets umbraco.contour "
What am I missing here?
Hi Mats and welcome to our :)
Do you mind sharing all of your XSLT code with us? If you're using Umbraco 4 you can add ?umbdebugshowtrace=1 to the url of the page where you get the rendering error and then see a stack trace that might reveal some useful information.
Otherwise if you're using 6+ then you can go to the /app_data/logs file and see if there is an error description so it's a bit easier to figure out what the issue perhaps is.
Looking forward to hearing from you.
/Jan
Hi Jan
Looking at the logs file gives me "Cannot find a script or an extension object associated with namespace 'urn:umbraco.contour'". I thought the install would give me all references needed?
My 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: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" xmlns:umbraco.contour="urn:umbraco.contour"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets umbraco.contour "
>
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<!-- start writing XSLT -->
<!-- Get all approved records of the current page by using the library method GetApprovedRecordsFromPage -->
<xsl:variable name="records" select="umbraco.contour:GetApprovedRecordsFromPage($currentPage/@id)" />
</xsl:template>
</xsl:stylesheet>
Hi Mats
By the first glance the above looks correct to me and usually that error is only thrown when namespaces are missing etc. but it looks perfectly fine to me.
What version of Umbraco are you using and what version of Contour are you using?
/Jan
Umbraco 7.1.1 and Contour 3.0.19
Hi Mats
hmm, ok - Perhaps it's an issue with Contour on Umbraco 7 - Think you need to post an issue at the issue tracker.
Any particular reason it's not Contour 3.0.20?
/Jan
No particular reason at all. I used the package repository to install Contour and that gave me 3.0.19
Hmm, that's odd - version 3.0.20 is available here http://our.umbraco.org/projects/umbraco-pro/contour
Perhaps an upgrade can solve your current issue? Think it's worth the try. Remember to do a backup of the database and your files before doing it though.
Hope this helps.
/Jan
Hi Jan
Trying to upgrade now...
Should these downloaded files be placed in the /umbraco folder or /umbraco/plugins/umbracoContour? I can't seem to find any files matching the ones I'm unpacking since I'm supposed to replace the existing ones.
Hi Mats,
Here is some information about how to upgrade an Contour installation http://our.umbraco.org/projects/umbraco-pro/contour/documentation/installation/Upgrade
Hope this helps,
EDIT: Ooops Jan, didnĀ“t see that you have linked to the upgrade documentation.
/Dennis
Thanks Dennis.
The issue for me is just where to put the extracted files? I'm supposed to replace my existing ones and I can't seem to find them for some reason.
Hi Mats
I actually made a link to the upgrade documents in the sentence where it says "upgrade" in my former post. I guess it was not obvious enough though :)
But everything you need to know should be described in there.
Hope that helps.
/Jan
Hi Mats
You should override the existing files indeed.
/Jan
Solved the problem by using Razor instead of the XSLT and macro. Thanks for your time and effort guys!
Hi Mats
That's also a way around it - glad you found a solution :)
Cheers, Jan
is working on a reply...