o3 crashes and leaks memory, which makes it unsuitable for use in a production 
environment. My understanding is that libxmljs is the only working DOM parser. 
Unfortunately, the DOM it exposes isn't W3C-compliant, so it was unsuitable for 
my uses when I was testing it. citeproc-js would need a new XML parsing module 
to support libxmljs's non-standard API, but it could probably be made to work. 
However, it may not simple to adapt a node.js binary package to run in Ruby.

SpiderNode (https://github.com/zpao/spidernode), which is node.js ported to use 
SpiderMonkey instead of V8, presumably has E4X support. However, I've been 
hearing rumblings that, at some point, Mozilla will be rewrite a large part of 
their E4X implementation in pure JS and remove features that can't be 
implemented with an ES5 Harmony proxy.

Simon

On Aug 15, 2011, at 12:29 PM, Bruce D'Arcus wrote:

> On Mon, Aug 15, 2011 at 12:22 PM, Simon Kornblith <[email protected]> wrote:
> 
>> If you're planning to parse a style and then use it many times, jsdom would 
>> work. It's what we use in citeproc-node 
>> (https://www.zotero.org/svn/citeproc-node/trunk/). However, jsdom is 
>> glacially slow, at least with larger documents. If you can't cache and reuse 
>> styles, it's possible that SpiderMonkey would be faster than V8+jsdom.
> 
> Have you checked on the state of alternative XML libraries lately Simon?
> 
> I see this mentioned a fair bit, for example:
> 
> <https://github.com/polotek/libxmljs/wiki>
> 
> Like o3 (which is now on npm) it has some dependencies though (but
> libxml is notoriously fast):
> 
> <http://stackoverflow.com/questions/5931099/alternatives-to-libxmljs>
> 
> Still hoping we can get to "npm install citeproc" at some point.
> 
> Bruce
> 
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model 
> configuration take the hassle out of deploying and managing Subversion and 
> the tools developers use with it. Learn more about uberSVN and get a free 
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> xbiblio-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbiblio-devel
> 


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
xbiblio-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to