xml - How to call c# function in xsl -


im trying call c# function in xsl. have map values xml. there 3 principal components

-xsl

<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/biztalk/2003/var"  xmlns:ns0="http://iti/serv/dataloader" xmlns:helpersns0="http://ri/clus/mapperhelpers/v1.0/i/f/c/customcomponents "> <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" /> <xsl:template match="/*[local-name()='invokedataloader']"> <ns0:scripttoexecute> <xsl:value-of select="helpersns0:getdataloaderpath()"/> </ns0:scripttoexecute> </xsl:template> </xsl:stylesheet> 

-xml c# assembly

<?xml version="1.0" encoding="utf-8" ?>  <extensionobjects> <extensionobject   namespace="http://ri/clus/mapperhelpers/v1.0/i/f/c/customcomponents"   assemblyname="g.t.i_fatt.customcomponents, version=1.0.0.0,culture=neutral, publickeytoken=6ecedb456a4a8c16"   classname="g.t.i_fatt.customcomponents.mapperhelpers"  /> </extensionobjects> 

-xml transform

<?xml version="1.0" encoding="utf-8" ?>  <invokedataloader xmlns="http://iti/serv/dataloader"> <scripttoexecute/> <inputfile/> </invokedataloader> 

but when try transform error: "namespace not contain functions"

i notice have xmlns:helpersns0="http://ri/clus/mapperhelpers/v1.0/i/f/c/customcomponents ts"> in xslt yet namespace="http://ri/clus/mapperhelpers/v1.0/i/f/c/customcomponents" (without ts) in other file. namespace not match.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -