Skip to main content



      Home
Home » Archived » BIRT » Does BIRT support XPath Axes?
Does BIRT support XPath Axes? [message #1073293] Wed, 24 July 2013 09:33 Go to next message
Eclipse UserFriend
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 04:28] by Moderator

Re: Does BIRT support XPath Axes? [message #1075318 is a reply to message #1073293] Mon, 29 July 2013 04:19 Go to previous messageGo to next message
Eclipse UserFriend
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 09:00 Go to previous message
Eclipse UserFriend
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: Sun Mar 23 21:23:40 EDT 2025

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

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

Back to the top