Copied to clipboard

Flag this post as spam?

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


  • Phil Crowe 192 posts 256 karma points
    Dec 22, 2010 @ 11:29
    Phil Crowe
    0

    Adding Namespaces to xslt

    Im really confused. I have add some c# at the top of my xslt file. like this:

    <msxml:script implements-prefix="myfunctionlib" language="C#">

    <![CDATA[

     

        public XmlDocument MemberListXslt(string searchQuery)

        {

            XmlDocument xdoc = myUtils.MemberListXml(searchQuery);

            return xdoc;

        }

    ]]>

    </msxml:script>

    myUtils is a .cs file i have in my project and i want to reference a the MemberListXml method. but the xslt is not parsing when i do this. do i need to reference a namespace? if so how?

     

  • Rich Green 2246 posts 4008 karma points
    Dec 22, 2010 @ 11:44
    Rich Green
    0

    Hey Phil,

    Doug has great blog post on XSLT extensions here http://blog.percipientstudios.com/2010/11/12/make-an-app_code-xslt-extension-for-umbraco.aspx

    Should explain what you need to do, if not let us know.

    Rich 

  • Phil Crowe 192 posts 256 karma points
    Dec 22, 2010 @ 12:19
    Phil Crowe
    0
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies