Hi Marco,

Could the tutorial be wrong at this point? Shouldn't it be "inventory/snack/chips/@supplier"?
Your workaround, '\@', does not seem to select the supplier attribute.

Carsten

On 10-1-2010 18:00, Marco Roos wrote:
Dear all,

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? 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?

Thanks,
Marco.

--
Marco Roos (PhD) <http://home.medewerker.uva.nl/m.roos1>
*BioSemantics group* <http://www.biosemantics.nl>, Human Genetics department <http://www.humgen.nl>, Leiden University Medical Centre <http://www.lumc.nl>
Albinusdreef 2 (Building 2, room S3-46)
2333 ZA Leiden
Tel. +31 (0) 71 526 9450
*Adaptive Information Disclosure group* <http://adaptivedisclosure.org/>, Informatics Institute <http://www.science.uva.nl/ii>, University of Amsterdam <http://www.uva.nl/> Kruislaan 403 ( room N2.30 <http://remote.science.uva.nl/%7Eroos/Kruislaan403_N230.png>) 1098 SJ Amsterdam
Tel. +31 (0) 20 525 7522
*Communities:*
Professional: LinkedIn <http://www.linkedin.com/in/marcoroos>, myExperiment <http://www.myexperiment.org/users/18> Personal: Hyves <http://mroos62.hyves.nl/>


------------------------------------------------------------------------------
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/

------------------------------------------------------------------------------
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