At this time, Xalan does not include a function to compute the XPath from
one node (or the root) to another. There's an open request-for-enhancement
suggesting we add this; if someone wanted to write it and donate it, that
would be a Good Thing.

Note that it's not simply a matter of enumerating the parents, since you
might have
      <a>
            <b/>
            <b>
                  <c/> <!-- Path should point to this one -->
                  <c/>
            </b>
      </a>
Finding a minimal _unique_ path to a node, without overspecifying it and
losing XPath's ability to tolerate some changes to the document, involves
some art as well as science.

______________________________________
Joe Kesselman  / IBM Research


Reply via email to