>Is there an easy way (some API, I didn't see) to get a DOM-Node's >canonical XPath ?
Right now is that we don't provide a canned version of this but it's not hard to write a basic version; several sketches exist in the archives of this mailing list. I agree that at some point we probably should add it to the Xalan package as a utility. Note that there's no such thing as a "canonical XPath". There are many XPaths that address any given node; some are easier to generate than others, and some are more robust than others given how you use your particular XML-based language. General-purpose XPath generators generally produce a simple /foo[2]/bar[1]/baz[3] kind of path, which may not be optimal for your needs.
