Copied to clipboard

Flag this post as spam?

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


  • praveen 113 posts 164 karma points
    Jun 25, 2011 @ 08:10
    praveen
    0

    XSLT in 4.7

    Hi

    Is the XSLT in 4.0 diffrent from 4.7

    We have several sites running in 4.0 now I am doing a new web site in 4.7, can I reuse the XSLT macros in 4.0 in the new website 4.7

    What API have changed? what is the diffrence between 4.0 and 4.7

    Please let me know, and many thanks in advance

    Kind Regards

    Praveen

      

  • Rich Green 2246 posts 4008 karma points
    Jun 25, 2011 @ 08:30
    Rich Green
    1

    Hi Praveen,

    Yes, the XML schema changed at 4.5, you can find details here http://our.umbraco.org/wiki/reference/xslt/45-xml-schema/no-more-@nodetypealias

    You can run 4.5 and above with the legacy schema, however you will need to check the packages you are using are supported in 4.5 and above, hope this helps.

    Rich

  • praveen 113 posts 164 karma points
    Jun 25, 2011 @ 09:08
    praveen
    0

    Hi Rich, thanks for the quick reply,

    Ive had a look at our.umbraco.org/.../no-more-@nodetypealias are these the only changes??

    So you are telling me that the 4.0 legacy code will not work in 4.7

    Thankn

    Praveeb

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 25, 2011 @ 09:23
    Jan Skovgaard
    1

    Hi Praveen

    You can use the legacy code in 4.7 - you just need to change this setting <UseLegacyXmlSchema> in the umbracoSettings.config - it's set to "false" by default. Change i to "true" and go into the content section and right click the "Content" node and select "Republish entire site".

    You should now be able to use the legacy code. But be aware that you can't use a mix of the two schemas. It's either one or the other.

    I would recommend you to use the new schema since it's easier to work with once you get familiar with it. If you have a lot of XSLT you want to reuse you can convert it to the new schema using Tommy Poulsens XML schema converter here: http://blackpoint.dk/umbraco-workbench/tools/convert-xml-schema-to-45-.aspx

    Hope this helps

    /Jan

  • praveen 113 posts 164 karma points
    Jun 25, 2011 @ 09:37
    praveen
    0

    Many thanks Jan, XML Schema converter is good,

    I have sucessfully upgrade a line of legacy XSLT code to the new version,

    are there any other changes apart from the XML Schema?

    Kind Regards

Please Sign in or register to post replies

Write your reply to:

Draft