My "styling stylesheets" 2-part article on IBM's DeveloperWorks website
included a template which will generate a pseudo-XPath to a given node.
(And the text of the article discusses why it's only "pseudo".)
http://www.ibm.com/developerworks/xml/library/x-styless2/
______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk