Marco Roos wrote:
> Dear all,

Hello Marco,

> I am trying one of the examples on this page:
> http://www.tizag.com/xmlTutorial/xpathattribute.php
> 
> The t2 workflow is attached. The workflow gives an error document that ends 
> with:
> Invalid XPath expression: inventory/snack/ch...@supplier Unexpected '@'
> 
> I was able to correct this by placing a '\' before the @ symbol, because I 
> remembered that such a thing would be needed in java too.
> 
> Would it be possible to remove these Java peculiarities from the use of 
> String 
> constants in Taverna?

Almost certainly.  You could preprocess the xpath string to put in the 
escapes.

> Or at least point this out to users when they get an 
> error (with a link to a help page perhaps)? Ideally, workflows should not 
> show 
> that Taverna is java-based, should it?

I agree.  I've added it into Jira as 
http://www.mygrid.org.uk/dev/issues/browse/T2-1095

In the mean time I'll put something in the help files.

> Thanks,
> Marco.

Alan

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/

Reply via email to