Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Cort Larsen 421 posts 1038 karma points
    Nov 30, 2013 @ 11:01
    Peter Cort Larsen
    0

    no more xsltExtensions.config in Umb 7?

    Hi,

    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.

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 30, 2013 @ 11:47
    Lee Kelleher
    0

    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!)

    Cheers, Lee.

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Nov 30, 2013 @ 23:27
    Chriztian Steinmeier
    1

    Hi Lee,

    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?

    /Chriztian

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 03, 2014 @ 00:57
    Lee Kelleher
    1

    For reference, the old EXSLT extensions are available as a standalone package:

    http://our.umbraco.org//projects/website-utilities/exslt-redux

  • George 58 posts 165 karma points
    Jan 09, 2014 @ 14:09
    George
    0

    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?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 09, 2014 @ 14:31
    Lee Kelleher
    1

    Hi Rene,

    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

    Cheers,
    - Lee

  • Wojciech Tengler 96 posts 199 karma points
    Aug 18, 2020 @ 15:14
    Wojciech Tengler
    1

    I think that this helpful information should be included in Upgrading to version 7 document next to information about removing xsltExtensions.config file.

  • George 58 posts 165 karma points
    Jan 09, 2014 @ 14:55
    George
    0

    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.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 27, 2014 @ 16:32
    Jeroen Breuer
    0

    Hello,

    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.

    Jeroen

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 27, 2014 @ 16:34
    Lee Kelleher
    3

    Hi Jeroen, yup the xsltExtensions.config is no longer used in Umbraco 7+. The XsltExtension needs to be added to the class.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 05, 2014 @ 11:05
    Jeroen Breuer
    1

    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 :).

    Jeroen

  • Dan Evans 631 posts 1018 karma points
    Jul 14, 2014 @ 13:08
    Dan Evans
    0

    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'.
Please Sign in or register to post replies

Write your reply to:

Draft