Is this an error yout get on all XSLT files you're trying to view inside of Umbraco? Or is it only happening to a specific file? If it's happening to a specific file please post the XSLT code in here - then it'll be much more easy to figure out what might cause this :)
I'm thinking that you might have missed to include the namespace in the XSLT file?
Missing script?
I notice that i did not get the same error as you, and even thogh ive set the guid and done all in vid I cant get it to work.
What am i doing wrong, can you help me?
This is the error i get.
Error occured
System.Xml.Xsl.XslTransformException: Cannot find a script or an extension object associated with namespace 'urn:cultiv.restcontour'.
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Best Regards
Morten Jensen
Hi Morten
Is this an error yout get on all XSLT files you're trying to view inside of Umbraco? Or is it only happening to a specific file? If it's happening to a specific file please post the XSLT code in here - then it'll be much more easy to figure out what might cause this :)
I'm thinking that you might have missed to include the namespace in the XSLT file?
/Jan
I only get this error in this XSLT file..
This is my code.
<?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:rc="urn:cultiv.restcontour"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets rc ">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<style>
.hide { display: none; }
ul, li { list-style-type: none; }
</style>
<xsl:variable name="setFormGuid" select="rc:SetContourGuid('c5308a8c-49dd-4b3a-a5e2-a0eb0ad28ead')"/>
<xsl:variable name="formGuid" select="rc:GetContourGuid('c5308a8c-49dd-4b3a-a5e2-a0eb0ad28ead')"/>
<form action="" method="post" id="form-{$formGuid}" name="ApplyForpartnership">
<div style="background: url(/media/13440/applypartner222.png) no-repeat; width:225px; height:298px;">
<div style="padding-left:29px; padding-top:82px;">
<ul class="formArea">
<li>
<input type="text" name="Navn"/>
</li>
<li>
<input type="text" name="Email"/>
</li>
<li>
<textarea name="Ansoegning">
<xsl:text> </xsl:text>
</textarea>
</li>
<li class="send-button">
<input type="submit" value="Send" class="button" />
</li>
<li class="errorList">
<ul class="errorList">
<xsl:comment/>
</ul>
</li>
</ul>
</div>
</div>
<div class="formLoading hide">
<h2>Processing</h2>
<h4>The form is being sent</h4>
</div>
<div class="formPosted hide">
<h2>Thanks</h2>
<h4>We've successfully recieved the form, thanks!</h4>
</div>
</form>
<script type="text/javascript">
<xsl:text>jQuery(document).ready(function () {</xsl:text>
<xsl:value-of select="rc:BuildForm()"/>
<xsl:text>});</xsl:text>
</script>
</xsl:template>
</xsl:stylesheet>
is working on a reply...