Home
Analytics
Namespace issue with XML Schemas in the New Data Set wizard
jpasley
When creating a new data set using the New Data Set wizard for an XML Data Source defined using an XML Schema, the xpath expressions are incorrect.
Attached is a simple XML Schema (ReportInput.xsd) created using the XML Schema editor in eclipse. I created a report (ReportFromXML.rptdesign) containing an XML data source based on this XML Schema. I then created a data set using the New Data Set wizard. The XPath expressions it generated don?t include a namespace prefix. For example, this was generated as the row mapping XPath expression: /Report_Data/Report_Entry
The XML Schema defines a targetNamespace, so the expression should be /tns:Report_Data/tns:Report_Entry.
Once the XPath expressions are fixed by hand as shown in FixedReportFromXML.repdesign, the report works correctly.
Is this a known issue with the New Data Set wizard?
Thanks,
James.
Find more posts tagged with
Comments
mwilliams
You might search the bugs on this at
http://www.birt-exchange.org/org/resources/bug-reporting/
.
If you don't find one regarding this with a good explanation to why this works this way, you might file a bug yourself to see what they say as to why they did it this way. If you could post any info in here that you find, for future reference, that'd be great!
jpasley
I've created <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361634'>https://bugs.eclipse.org/bugs/show_bug.cgi?id=361634</a>
;