xsl-list
[Top] [All Lists]

RE: Autogenerating XPath from XML?

2002-09-29 13:14:02


From: Kenji Hollis [mailto:kenji(_at_)ptdmicro(_dot_)com]
[ suggestion from Jeni T ]
Hmmmm, this doesn't actually work, because I'm not using a 
stylesheet to create the output.  This is being done via a
Java program.  I need a way to do this programatically
using Java...

There is no reason that you can't invoke a Transformer and have it generate a 
String as output that contains the path.  The alternative is some basic DOM 
programming that uses recursion to work back to the root of the tree along the 
same lines of Jeni T's suggestion, but this is the wrong list for that. :)

        -- Paul

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>