Re: [xml] XPath queries on document fragments without a document

On Thu, Sep 05, 2002 at 01:21:39PM -0700, Sean Chittenden wrote:
You bet!  I'm actually out to compete with AxKit here in a month or
two and think I can beat their performance #'s.  :~) I'm a perl->ruby
convert and want to offer something superior to Perl.  Other than an

  Hehe, I think Matt won't be annoyed by a bit of challenge :-)

way of dynamically creating pages via XML/XSLT, the Ruby bindings for
libxml/libxslt are also the basis for rubynet, Ruby's CPAN.

  Sounds cool ...

I've wrapped most of the data structures and have just finished
wrapping the parser contexts.  I'm about to go through and add parser
contexts to everything so that you can make multiple calls to xpath
w/o segv'ing the parser.  Speaking of, what's the best way to hook
into libxml's memory management given Ruby has its own garbage
collector that runs at uncontrollable times.  I was having some
problems cleaning up the xml parser in a persistent environment.  I
settled in on setting up a counter for how many XML documents were in
existence, but that seems really broken.  Any tips/incite there?  -sc

  Well look at , basically you can
override completely the set of memory routines used by libxml2 and
libxslt using xmlMemSetup(), but I'm not sure it will be really
useful. IIRC Matt had to build reference counting layer for each
object of libxml2 manipulated from perl.

  Good luck, have fun !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]