Re: [xsl] XML structure to HTML unordered list

Subject: Re: [xsl] XML structure to HTML unordered list
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 09 Sep 2007 11:57:27 -0600
On Sun, 09 Sep 2007 11:34:17 -0600, Abel Braaksma <> wrote:

no, no, I meant the other way around. Invoking C is clear, that's the easy bit. But suppose you want to enable the user to define xslt extension functions in there host language (i.e., PHP when you use a bridge from PHP to C/Gestalt). But I'll have to dive into the Gestalt docs (or ask Colin).

Yeah, that was my bad. See my follow-up link.

For instance, in SaxonJ it is easy to call a Java method almost directly from XSLT (of course one really needs this, but anyway),

The same is true with Saxon on .NET, something I use *EXTENSIVELY* these days. e.g. [1,2,3], invoking them using an XSLT-influenced XML service language[4]. In fact having now tasted the pure and indescribale joy of programming in XSLT w/ full access to the .NET platform, whether that be as an extension function written in C# or accessing the FCL directly there is simply no way I could *EVER* go back to the "old days" of programming for the .NET platform. I'm getting hives just thinking about it at the moment. ;-)

but if I call Java methods from PHP, I cannot all of a sudden create PHP methods and call them from XSLT, can I?

via Phalanger, sure. Phalanger compiles PHP to CIL (except for calls to eval) which means Saxon on .NET can then access that assembly and invoke the methods directly. I don't know if there are any PHP to Java byte code compilers, so I can't say for sure if this is possible in the Java world. Anyone know for sure one way or another?

Surely, a PHP programmer would want to be able to write extension functions in PHP, not in Eiffel.

Shhh... Don't say that sentence outloud when Colin's listening in! ;-)

Likely, it will only work through Eiffel currently. I.e., making an Eiffel stub that calls into PHP sounds doable, but very awkward (not yet talking about making it generic for multiple languages).

As per above, as far as I am currently aware, this would only be possible on the .NET platform via Phalanger.



M. David Peterson | |

Current Thread