Thanks Steven, any chance you could point me at some example code to get me started?
msxml does it similarly to xalan java. You declare a namespace for the c# functions and prefix function calls with it. If they're custom functions then you need to provide a reference in a separate xml file to the assembly(a shared library) that contains the code. Then it knows to load it into memory at run time. On Sun, Jul 13, 2014 at 12:09 AM, <shath...@e-z.net> wrote: > Jay, > > I'm not sure how Microsoft does the linkage. There is no XPath function > in the Xalan-C library to call an external program. Hooks are available > for you to overlay the "function" class used to define XPath functions, > thus allowing you to compile your own custom program linkage. You will > need to compile your own custom XPath function and load it at runtime > into the engine. > > I have written several XPath libraries in 'C/C++' that create custom > XPath extension functions. They are not yet released to the general > community. > > Sincerely, > Steven J. Hathaway > > > I've used msxml to run c-sharp scripts from an xslt script. I see that > the > > java version of xalan can run java. > > > > I assume the xalan c version can run java scripts if java is installed. > > I also saw there was a project to extend the functions available in xslt. > > Is there a function/method to execute an external application? Such as > > fork() or system() in c code? > > > > > > > > On Sat, Jul 12, 2014 at 10:22 PM, Scott Yuan <yua...@yahoo.com> wrote: > > > >> Hi Jay, > >> > >> What do you mean 'calling external executables' from xalan - C, could > >> you > >> give a more specific example of what you need to achieve? > >> > >> Regards, > >> > >> Scott Yuan > >> > >> -------------------------------------------- > >> On Sun, 7/13/14, Jay Sprenkle <jspren...@gmail.com> wrote: > >> > >> Subject: calling external code from xalan c > >> To: c-users@xalan.apache.org > >> Date: Sunday, July 13, 2014, 8:24 AM > >> > >> Good afternoon, > >> Is there documentation for calling external executables from > >> xalan c? > >> If it's not currently possible would anyone point me > >> toward a good starting place to create that functionality? > >> > >> > >> Thanks, > >> Jay > >> > >> > >> > > > > > > -- > > -- > > Silicon Valley Girl: "GAC me with a spoon!" > > Me! > > -- > > "Save your tears > > for the day > > when our pain is far behind > > on your feet > > come with me > > we are soldiers stand or die > > > > Save your fears > > take your place > > save them for the judgement day > > fast and free > > follow me > > time to make the sacrifice > > we rise or fall" > > Ghost in the Shell "Rise" > > > > > -- -- Silicon Valley Girl: "GAC me with a spoon!" Me! -- "Save your tears for the day when our pain is far behind on your feet come with me we are soldiers stand or die Save your fears take your place save them for the judgement day fast and free follow me time to make the sacrifice we rise or fall" Ghost in the Shell "Rise"