Jump to content
Changes to the Jaspersoft community edition download ×

XPATH: position()


2004 IR Help

Recommended Posts

  • 3 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

 I think it's not possible to use that function...

I have an xml document with this structure:

<form>

  <questions>

     <question>...</question>

 

     <question>...</question>

     <question>...</question>

  ...

 

</form>

And I'm giving it to my template with XPath /form/questions/question

Then in my template I have a field $F{position} which value is 

<fieldDescription>position()</fieldDescription>

Finally I print that field inside my detail band.

It seems that it actually try to use the field $F{posisition}, just that it prints a fix value in every iteration: -1.

Can anyone confirm that this is actually a bug?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...