What version of Umbraco are you using? And what is the exact error you're getting? The solution Biagio found 4 years ago may not be the same today nor the issue.
I'm using 6.2.1 (business not Blog4Umbraco) and the exact error is:
System.Xml.Xsl.XslLoadException: Prefix 'TagsLib' is not defined. An error occurred at D:\Staging2014\xslt\635586379038769721_temp.xslt(16,1). at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Ok, seems like you need to add a namespace reference in the xslt file in the line where you see the other ones like xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" so you should add xmlns:TagsLib="urn:TagsLib" in that line somewhere as well and in the exclude-result-prefixes attribute you should add TagLib as well.
tagsLib: How to setup without blog package?
I use tag datatype in my document type and I wish to use cloud function and tagsLib:getAllTagsInGroup,
but XSLT don't recognize lib. I've changed config file, too.
solved
What was your solution?
Hi BenH
What version of Umbraco are you using? And what is the exact error you're getting? The solution Biagio found 4 years ago may not be the same today nor the issue.
/Jan
Hi Jan,
I'm using 6.2.1 (business not Blog4Umbraco) and the exact error is:
I've also added the ext line to my config file (found here http://our.umbraco.org/documentation/using-umbraco/backoffice-overview/property-editors/built-in-property-editors/Tags)
Is it because I'm not using the Blog version?
Thanks!
Hi Ben
Ok, perhaps you're simply missing a namespace in the XSLT file.
Could you please post the XSLT code and the content of your /config/XsltExtensions.config file?
/Jan
And the config:
Hi Ben
Ok, seems like you need to add a namespace reference in the xslt file in the line where you see the other ones like xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" so you should add xmlns:TagsLib="urn:TagsLib" in that line somewhere as well and in the exclude-result-prefixes attribute you should add TagLib as well.
Hope this makes sense :)
/Jan
That did something! Got a new error:
Hi, Ben,
I'll search into the code of an old website that I port to the last version of U6 branch.
is working on a reply...