Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Bug in Column Mapping with XML Data Source
azique
Hello,<br />
<br />
I think I found a bug while using an XML data source. It seems like the XPath instruction doesn't work correctly when you want to point to a node with attributes above the source node: <br />
<pre class='_prettyXprint _lang-auto _linenums:0'><parent_node>
...
<other_node attr='1'>text</other_node>
...
<source_node /> ' this is where the table mapping points to
</parent_node></pre>
<br />
You won't be able to map a column with the value of 'other_node' with the attribute '1'. Instead you always receive the value of the *first* 'other_node'.<br />
<br />
See the samples I attached below to understand what I mean.<br />
<br />
The XML source file (rename it from txt to xml):<br />
Find more posts tagged with
Comments
mwilliams
Hi azique,<br />
<br />
It's definitely a bug to not be able to map to the upper level items with [
@name
= "whatever"] since it can be done in the lower level of the XML. Please log this bug at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a>. Be sure to describe the problem in detail and use screenshots and/or report designs if possible.<br />
<br />
If it's possible to change your XML, it is possible to get all of the items from the higher level, just not how you're currently attempting to because of the bug.
azique
Hi Michael,<br />
<br />
I posted a bug yesterday at <a class='bbc_url' href='
http://ted.birt-exchange.com/show_bug.cgi?id=26'>BIRT
Exchange TED</a> (was not sure, if this is the correct place) and the same bug today at <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250049'>Eclipse
Bugs</a>, too, due to your suggestion.<br />
<br />
I can use a workaround for this if I work with id and idref and make two separate data sources and join them afterwards.
mwilliams
azique,
Excellent. Thank you!
azique
This bug is fixed now. See <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250049'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=250049</a><br
/>
<br />
Will the latest version of the DTP be available to the BIRT 2.1 branch, too - or only to future releases of the BIRT 2.3 branch?