intersect and except implementation

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

  1. Guest

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

  2. In article <>,
    <> wrote:

    >Does anybody know any implementation of XPaths that supports path
    >intersection and difference?


    Exslt has functions for these operations.

    -- Richard



    --
    "Consideration shall be given to the need for as many as 32 characters
    in some alphabets" - X3.4, 1963.
     
    Richard Tobin, May 13, 2007
    #2
    1. Advertising

  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:

    Intersection:
    $set1[count(.|$set2)=count($set2)]

    Symmetric difference:
    ( $set1[count(.|$set2)!=count($set2)]
    | $set2[count(.|$set1)!=count($set1)] )


    --
    () ASCII Ribbon Campaign | Joe Kesselman
    /\ Stamp out HTML e-mail! | System architexture and kinetic poetry
     
    Joe Kesselman, May 13, 2007
    #3
  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.


    Cheers,
    Dimitre Novatchev



    <> wrote in message
    news:...
    > Does anybody know any implementation of XPaths that supports path
    > intersection and difference?
    >
     
    Dimitre Novatchev, May 13, 2007
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Francogrex
    Replies:
    3
    Views:
    445
    Lionel B
    May 7, 2008
  2. David Wilson

    itertools.intersect?

    David Wilson, Jun 10, 2009, in forum: Python
    Replies:
    16
    Views:
    711
    Francis Carr
    Jun 22, 2009
  3. Peng Yu
    Replies:
    1
    Views:
    527
    Steven D'Aprano
    Nov 18, 2009
  4. MRAB
    Replies:
    0
    Views:
    837
  5. macm
    Replies:
    11
    Views:
    611
    Alexander Gattin
    Nov 11, 2010
Loading...

Share This Page