intersect and except implementation

Discussion in 'XML' started by tmuldner, May 13, 2007.

  1. tmuldner

    tmuldner Guest

    Does anybody know any implementation of XPaths that supports path
    intersection and difference?
    tmuldner, May 13, 2007
    1. Advertisements

  2. Exslt has functions for these operations.

    -- Richard
    Richard Tobin, May 13, 2007
    1. Advertisements

  3. Websearch comes up with the "Kaysan method" for expressing these, by
    leveraging the union operator and count to check for an element's
    presence in the other set:


    Symmetric difference:
    ( $set1[count(.|$set2)!=count($set2)]
    | $set2[count(.|$set1)!=count($set1)] )
    Joe Kesselman, May 13, 2007
  4. As others have pointed out, the Kaysian method (originally used with XPath
    1.0) has been around the last seven years.

    Also, "intersect" and "except" are operators in the standard XPath 2.0
    language, for which several implementations exist.

    Embedded in XSLT 2.0: Saxon, Gestalt, Altova

    Embedded in XQuery 1.0 -- many.

    Dimitre Novatchev
    Dimitre Novatchev, May 13, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.