Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Data Set XPath Expression doesn't work(XPath Data Set - Row Mapping)
Data Set XPath Expression doesn't work [message #687969] Thu, 23 June 2011 15:28 Go to next message
Adriana  is currently offline Adriana
Messages: 2
Registered: June 2011
Junior Member
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.

What am I doing wrong ?

Thank you for your help Rolling Eyes



Re: Data Set XPath Expression doesn't work [message #688032 is a reply to message #687969] Thu, 23 June 2011 18:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This looks like a bug. Can you log it in bugzilla? As a work around can you add a filter to the dataset?

Jason
Re: Data Set XPath Expression doesn't work [message #688265 is a reply to message #688032] Fri, 24 June 2011 09:51 Go to previous message
Adriana  is currently offline Adriana
Messages: 2
Registered: June 2011
Junior Member
Thanks, the filter idea works fine.

[Updated on: Fri, 24 June 2011 09:52]

Report message to a moderator

Previous Topic:Newbie: Embed Image from URL
Next Topic:Remove special characters from generated word doc
Goto Forum:
  


Current Time: Sat Nov 01 00:36:16 GMT 2014

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

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