Hi Markus, Thanks for this - we'll have a look.
In the meantime, you can still run the service with the original Xpath expression (/ns3:directoryContents/ns2:file/@xlink:href) even if HealthChecker is complaining. You can also set in preferences to do only "quick checks" when running a workflow instead of "full checks" which will make the HealthChecker warning go away. Cheers, 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/ ------------------------------------------------------------------------------ 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/
