Hi,
Filed a bug report at http://www.mygrid.org.uk/dev/issues/browse/T2-2018.
Alex
On 28/11/2011 21:10, Markus Plangg wrote:
Hi,
I was trying to add an XPath activity to a workflow that processes an
XML with an xlink:href attribute:
<?xml version="1.0" encoding="UTF-8"?>
<ns3:directoryContents xmlns:ns3="http://ns.taverna.org.uk/2010/xml/server/rest/"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ns2="http://ns.taverna.org.uk/2010/xml/server/">
<ns2:file
xlink:href="http://localhost:8080/taverna-server/rest/runs/6dcaa906-175c-4dc6-a4c5-38b7ddbda5fb/wd/out/out"
ns2:name="out">out/out</ns2:file>
</ns3:directoryContents>
The following XPath expression is generated for the attribute xlink:href:
/ns3:directoryContents/ns2:file/@xlink:href
This works in the XPath activity configuration window but the
HealthChecker complains that the "XPath activity - has missing namespace
mappings". When I remove the xlink namespace from the XML, everything
works fine.
I think this might be a bug in the method
hasMissingNamespaceMappings(XPathActivityConfigurationBeanconfigBean)in
XPathActivityHealthChecker.java. Here the part before ":" is used as
prefix including the "@"-sign.
As a workaround I currently use:
/ns3:directoryContents/ns2:file/@*[local-name()="href"]
Regards,
Markus
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/