Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Does BIRT support XPath Axes?
Does BIRT support XPath Axes? [message #1073293] Wed, 24 July 2013 13:33 Go to next message
Paolo Aprile is currently offline Paolo AprileFriend
Messages: 24
Registered: June 2013
Junior Member
Hi again!

I'm trying to select data from an XML data source, but it doesn't seem to support the use of XPath axes.

Given an XML like this (courtesy of Zvom XLab):

<AAA>
<BBB aaa="111" bbb="222">
<CCC/>
<CCC xxx="555" yyy="666" zzz="777"/>
</BBB>
<BBB aaa="999">
<CCC xxx="qq"/>
<DDD xxx="ww"/> //--->This xxx is the attribute I want to select
<EEE xxx="oo"/>
</BBB>
<BBB>
<DDD xxx="oo"/>
</BBB>
</AAA>


I'm mapping a column with something like this:

//CCC[@xxx="qq"]/following-sibling::DDD/@xxx


While in the XLab and elsewere it works perfectly, in BIRT I only obtain a void column.
Does anyone know if this syntax is supported?

Thanks!

Paolo


Edit:

I tried this solution, that doesn't involve any XPath functions and should be supported:

/AAA/BBB/CCC[@xxx="qq"]/../DDD/@xxx


Again, no result. While it works in other contexts, it doesn't recover any data in BIRT. Sad

Any suggestions?

[Updated on: Thu, 25 July 2013 08:28]

Report message to a moderator

Re: Does BIRT support XPath Axes? [message #1075318 is a reply to message #1073293] Mon, 29 July 2013 08:19 Go to previous messageGo to next message
Paolo Aprile is currently offline Paolo AprileFriend
Messages: 24
Registered: June 2013
Junior Member
No answer at all?... Should I be worried? O_o
Re: Does BIRT support XPath Axes? [message #1076476 is a reply to message #1075318] Wed, 31 July 2013 13:00 Go to previous message
Paolo Aprile is currently offline Paolo AprileFriend
Messages: 24
Registered: June 2013
Junior Member
Ok, upon further research online, I've found traces of this problem since 2009.
It appears that more complex XPath patterns seimply do not work in BIRT. Even being sintattically correct, no results are produced.

I find it hard to believe that no one on this forum knew about the problem. :/
Previous Topic:Add link to Maximo page to launch report in "Browser View"
Next Topic:barcode via Dynamic Image
Goto Forum:
  


Current Time: Thu Apr 25 09:01:28 GMT 2024

Powered by FUDForum. Page generated in 0.04003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top