Re: [xsl] XML structure to HTML unordered list
2007-09-09 10:58:02
On Sun, 09 Sep 2007 11:34:17 -0600, Abel Braaksma <abel(_dot_)online(_at_)xs4all(_dot_)nl>
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.
[1]
http://extf.googlecode.com/svn/branches/development-0.2.3/WebApp/transform/base.xslt
[2]
http://extf.googlecode.com/svn/branches/development-0.2.3/WebApp/transform/controller/proxy/base.xslt
[3]
http://extf.googlecode.com/svn/branches/development-0.2.3/WebApp/service/proxy/return-xml-from-html/service.op
[4]
http://extf.googlecode.com/svn/branches/development-0.2.3/Xameleon/Function/HttpSgmlToXml.cs
--
/M:D
M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |
http://dev.aol.com/blog/3155
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [xsl] XML structure to HTML unordered list, (continued)
- Re: [xsl] XML structure to HTML unordered list, Colin Paul Adams
- Re: [xsl] XML structure to HTML unordered list, M. David Peterson
- Re: [xsl] XML structure to HTML unordered list, Abel Braaksma
- Re: [xsl] XML structure to HTML unordered list, M. David Peterson
- Re: [xsl] XML structure to HTML unordered list, M. David Peterson
- Re: [xsl] XML structure to HTML unordered list, Abel Braaksma
- Re: [xsl] XML structure to HTML unordered list, Abel Braaksma
- Re: [xsl] XML structure to HTML unordered list,
M. David Peterson <=
- Re: [xsl] XML structure to HTML unordered list, Colin Paul Adams
- Re: [xsl] XML structure to HTML unordered list, Abel Braaksma
- Re: [xsl] XML structure to HTML unordered list, M. David Peterson
- Re: [xsl] XML structure to HTML unordered list, Colin Paul Adams
- Re: [xsl] XML structure to HTML unordered list, Abel Braaksma
- [xsl] Javascript for extension functions, Colin Paul Adams
- Re: [xsl] Javascript for extension functions, Abel Braaksma
- Re: [xsl] Javascript for extension functions, Colin Paul Adams
- Re: [xsl] Javascript for extension functions, Abel Braaksma
- Re: [xsl] Javascript for extension functions, bryan rasmussen
|
|
|