Erlang: Interfacing with Xalan: port driver or nif?

Posted by mwt on Stack Overflow See other posts from Stack Overflow or by mwt
Published on 2010-05-26T05:14:17Z Indexed on 2010/05/26 5:21 UTC
Read the original article Hit count: 320

Filed under:

I'd like to get a real XSLT processor working with erlang. Which would be the best interface, nif or port driver? According to the nif documentation, nif calls block the runtime, so they should not take long. Is processing a long xml document too long?

Also, I'd like to allow erlang callbacks during the transformation. Does that seem possible? Possible with nif but not port drivers or vice versa?

I've never written any C, so I figured this would be good introduction. Xalan is C++. I assume nif can work with that, right?

© Stack Overflow or respective owner

Related posts about erlang