Hello.
Suppose you want to print out several documents (Invoices) at once from a browser (HTML page). The invoice is generated in a
servlet, where a XML document is translated into HTML using XSL transformation.
What I want is to call XMLOutputter in a servlet to print out several XML/XSL documents in a loop...
At this moment I have a
JSP page calling a servlet. The servlet gets a XML document as Blob and translate in into HTML using a XSL file. This work fine, when I print one XML/XSL file only. Please see the code below:
JSP (PrintInvoice.jsp) code looks like this:
Servlet code (InvoiceResponse.java) looks like this:
What I want is to print out several XML/XSL and show it all in HTML.
When running a loop in my JSP code I get the error as follow:
Only one top level element is allowed in an XML document...
Please see the loop below:
JSP (PrintInvoice.jsp) code with loop looks like this:
Any idea how to loop and print several XML/XSL in HTML?