Bug 350223 - Data Set XPath Expression doesn't work
Summary: Data Set XPath Expression doesn't work
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-DataAccess CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 05:57 EDT by Adriana CLA
Modified: 2011-06-26 23:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adriana CLA 2011-06-24 05:57:03 EDT
The following fragment is a part of an xml file given as source to a XML Data Source

<Rules>
<Rule id="ruleID">
<Stats total="0"/>
</Rule>
</Rules>
<Rules>
<Rule id="ruleID">
<Stats total="10"/>
</Rule>
</Rules>

I use this Data Source to define a Data Set.
In the "Row Mapping" section I want to select only the elements which have the total attribute value not equal to "0";

When i specify the XPath Expression as

/Rules/Rule/Stats[@total!='0']
or
/Rules/Rule/Stats[not(@total='0')]

there are no results.


Note that the expression /Rules/Rule/Stats[@total='0'] works fine.



Severity set to minor because we can use filters to achieve the goal.