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
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?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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
is working on a reply...