x First time here? Check out the FAQ

Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed!
Less than 45 tickets left - get yours now!

  • Avatar1138posts2259karma

    Using an xslt macro in a custom section

    dandrayne started this topic July 5, 2010 @ 05:38 , this topic was edited at: Monday, July 5, 2010 7:11 PM

    Hi All

    I wonder if it's possible to use an xslt macro withing a custom aspx page/custom section? 

    I'd basically like to transform an external xml file and display the results within a custom admin section.  Does anyone have any experience doing this or any tips?

    Dan


  • Replies

  • Avatar2812posts7562karma
    admin Comment with ID: 37909
    Lee Kelleher posted this reply July 5, 2010 @ 07:11

    Hi Dan,

    If I understand correctly, in your custom section/page, you have an XML data-source (external, being not from Umbraco).  So yes, you can apply an XSLT to that, no problem. But my question is do you need to use a macro for it?

    I'm not sure what benefits there are to using a macro in that way - when all you need to do is transform an XML document with the XSLT.  If you need extension libraries (like umbraco.library), then you can load those in as required.

    Do you need an example code snippet to help? (which language are you developing in?)

    Cheers, Lee.


Please login or Sign up To post replies