Hi,

I was looking at the org.apache.xpath stuff, which is great for if you have an 
expression you need to evaluate...but I was wondering if there was a way to use 
Xalan to create an xpath expression programatically?  For example:

XPath path = new XPath();
XPathStep step = new XPathStep();
step.setAxis(...);
step.setNodeText(...);
step.setPredicate(...);
path.addStep(step);
...continue for lots of steps...

System.out.println("Xpath is: " + path.toString());

Now obviously the above method calls are ficticious, I use them as an example 
to get across what I want to do.  It would not be difficult for me to write 
some classes to do this, however I just thought I'd check if the ability 
already exists in Xalan first.  Anyone have any ideas?

Thanks
Adam



Number 1 in Truck Insurance

______________________________________________________________________
CAUTION - This message is intended for the addressee named above.

It may contain privileged or confidential information. If you are 
not the intended recipient of this message you must not use, 
copy, distribute or disclose it to anyone other than the addressee.
If you have received this email in error please return the message to the 
sender by replying to it and then delete the message from your computer.

Internet e-mails are not necessarily secure. 
National Transport Insurance does not accept responsibility for changes made to 
this message after it was sent.
______________________________________________________________________

Reply via email to