Injecting Jasper parameters into field specifications

I want to have shared (template) JRXML files that work for a variety of XML datasources.

The only thing I know of that might prevent this is that the field specifications would be slightly different.

For one XML file the XPATH for a name field might be:


For another XML file the XPATH might be:


Ideally I could pass the XPATH in as a parameter and have the following inside a fieldDescription tag


But Jasper doesn't seem to support the use of parameters in tags.

Is the some way for me to inject the field specification into my JRXML templates?

dablick's picture
Joined: Jan 17 2013 - 8:26am
Last seen: 10 years 1 month ago

0 Answers:

No answers yet