How to pass $P{XML_DATA_DOCUMENT} to sub report - additional documentation

Description

When I execute the following command:
jasperstarter pr xml0.jasper -t xml -f pdf -o report --xml-xpath "/Northwind/Customers" --data-file "north.xml"

I'm getting this error. The problem is that xml0.jasper has a sub report and the XML_DATA_DOCUMENT needs to be passed to the subreport for it to have data. Any other ideas on how to make subreports work using XML data files?

11:25:05,499 WARN JRXPathQueryExecuter:127 - No XML source was provided.

Environment

Windows 7

Activity

Show:
Kevin Koskela
June 2, 2015, 6:03 PM

nblock,
When I try to put in that expression into the DataSourceExpression in Jasper Reports Studio it tells me "invalid expression". Any idea what I might be doing wrong. I've googled it to death and found nothing.
Thanks,
Kevin

Volker Voßkämper
June 2, 2015, 6:50 PM

Hi Kevin,
please use the forum for questions.
https://sourceforge.net/p/jasperstarter/discussion/general/

If this issue is closed, no normal user get benefit on answers made here.
I think nblock has already seen your thread there

Regards
Volker

Kevin Koskela
June 2, 2015, 7:54 PM

Ok, sorry. I'll start a new discussion question and upload my example
xml report/subreport that isn't working.

Kevin

nblock
June 2, 2015, 8:37 PM

I decided to write a short blog post about this issue. You can find it here: http://nblock.org/2015/06/02/processing-jasper-subreports-with-jasperstarter/

Volker, feel free to include the examples, if you like.

nblock
June 4, 2015, 3:20 PM

The examples are licensed under Apace 2 license, so they can be included in the repository

Fixed

Assignee

Volker Voßkämper

Reporter

Kevin Koskela

Labels

None

Components

Fix versions

Affects versions

Priority

Major