I am generating html using XSL at the runtime. My task is to print signature section after all the data is printed. I am printing data like this:
Customer 1 data
Customer 2 data
Customer 3 data
Customer 4 data
Customer 5 data
Owner’s Signature
Each customer data has id, name, address, etc., upto 5 details per customer.
At the end of all customer data I need to print Owner’s signature section.
Right now the customer data is running till 3 pages, and owner section is printing in the first page only. But i need owners signature at the end of the 3 pages.
I am generating html using XSL at the runtime. My task is to print
Share
This is a simple example how to produce some wanted output at the end of processing everything else:
when this transformation is applied on the following XML document:
the wanted result is produced:
Explanation:
All processing (disregarding non-element top nodes (it is safe to assume that no such exist) ) is captured in this template:
Because the string
"Signature:"is physically the very last in the template, and because an XML document only has a single top element node and this template is selected only once, this guarantees that the string"Signature:"is the last output produced by the transformation.