MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

Producing error when #464

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create sample xml with one of the node name having '-' dash in it.
2.Generate report

What is the expected output? What do you see instead?
Gives error as 
FreeMarker template error:
For "-" left-hand operand: Expected a number, but this evaluated to a 
sequence+hash (wrapper: f.e.dom.NodeListModel):
==> 
doc.CM_OUTMSG_BILL_PRINT_EXTRACT.messsage.messageData.billGroup.bill.invoiceInfo
.amountDue31  [in template 
"fr.opensagres.xdocreport.document.docx.DocxReport@9f436f5!word/document.xml" 
at line 4, column 37023]

What version of the product are you using? On what operating system?
using 1.0.4

Original issue reported on code.google.com by ravijag...@gmail.com on 20 Feb 2015 at 1:44

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is about FReemarker syntax problem (not an issue of XDocReport).

Have you tried to write root["first-name"] ?

Original comment by angelo.z...@gmail.com on 20 Feb 2015 at 1:47