Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it not possible to use xsltExtensions in Umbraco 7, if you maybe have some old code you wanna use again instaed of rewriting everything?
I cant find the xsltExtensions.config file in the config folder.
Hi Peter, you're correct it has been removed from Umbraco 7. See this ticket on the issue tracker
I guess the way to use old code is to write a wrapper class? (I know, I hear the frustration too!)
The tracker issue (and the Google Groups Doc linked from it) mention a separate download for at least the EXSLT extensions — has this surfaced anywhere?
Is there a page we can direct people to, for info about how you'd go about adding the necessaries to get "that old code that used XYZ" working again?
For reference, the old EXSLT extensions are available as a standalone package:
What if we had a user-defined xslt extension like <ext assembly="Aqua-Project" type="Aqua_Project.ProductList" alias="Aqua-ProdList" />How and where would we include it in our freshly updated umbraco 7 project?
You will need to add the [XsltExtension("Aqua-ProdList")] attribute to your Aqua_Project.ProductList class.
e.g. An example of how I did it on the EXSLT project: https://github.com/leekelleher/umbraco-7-exslt-redux/blob/master/src/umbraco.presentation.xslt.Exslt/ExsltStrings.cs#L13
I think that this helpful information should be included in Upgrading to version 7 document next to information about removing xsltExtensions.config file.
Thanks Lee, that solved it! I have to review some of my calls to umbraco libraries now, but it looks like I can include the extention.
So XSLT extensions from the xsltExtensions.config don't work anymore at all? I tried to add the file again, but that didn't seem to help. Do I really need to rewrite my code to use the attributes instead of the config file? Running 7.1.3 now.
Hi Jeroen, yup the xsltExtensions.config is no longer used in Umbraco 7+. The XsltExtension needs to be added to the class.
I've added the XsltExtension attribute and now my extensions are working again :). Upgraded all the way from 4.0.3 with legacy XSLT, but it's all working in v7 now :).
Mine was working in 7.0.3 but upgrading to 7.1.4 getting this error:
The extension is in App_code
System.Xml.Xsl.XslTransformException: Cannot find a script or an extension object associated with namespace 'urn:plan9.XSLTHelpers'.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted