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

On Thu, Sep 05, 2002 at 12:50:18PM -0700, Sean Chittenden wrote:
THE SOLUTION, is to keep a surrounding document element, as well as
a fake root element to encapsulate the well-balanced chunk and run the
query on this perfectly well defined document. 

Ahh, heh.

A document fragment ain't an XML document. Make it a document and
everything becomes smooth,

Alrighty, groovy.  Just thought there could be an easy fix.  ::shrug::

  Well the XPath data model is defined pretty strongly, and for a reason,
if you break that universe, a lot of bad things can happen.

Hey, fwiw, if anyone's interested in a libxml/libxslt bindings for
Ruby, let me know.  They're adhering to the C API so far but aren't
finished and should be pretty easy to use.  -sc

  Hum, I love to heard about bindings for new language, but I'm wondering
how this relates to the existing Ruby bindings at :
as pointed from:

  Are the old ones unusable, or unmaintained ?
Also do you plan to provide XSLT extensions using Ruby (like Matt Sergeant
did with the latest XML::LibXSLT release) ?


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]