Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350223

Summary: Data Set XPath Expression doesn't work
Product: z_Archived Reporter: Adriana <ADRIANA.NITESCU>
Component: BIRTAssignee: Birt-DataAccess <Birt-DataAccess-inbox>
Status: NEW --- QA Contact: Xiaoying Gu <bluesoldier>
Severity: minor    
Priority: P3 CC: bluesoldier
Version: 2.6.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.