I am not a developer, but I have to deal with xslt to format xml and generate pdfs occasionally for work.
below you can see the XML and the XSL I am trying to format it with. It all worked fine until I tried to insert the second template. Obviously I am doing something wrong. I am trying to use template and for-each to add a row in the table for each <order_line_item> nested under <order_line_items> and in each of the four cells there should be the four values nested under <order_line_item> Could you help? Thanks!
I was told that you cannot nest templates, so obviously that needs correction. Could someone provide a worked out solution please?
Correct Use of xsl:template and xsl:for-each
in XSLT/XSL-FO
Posted
Hi,
I am not a developer, but I have to deal with xslt to format xml and generate pdfs occasionally for work.
below you can see the XML and the XSL I am trying to format it with. It all worked fine until I tried to insert the second template. Obviously I am doing something wrong. I am trying to use template and for-each to add a row in the table for each
<order_line_item>
nested under<order_line_items>
and in each of the four cells there should be the four values nested under<order_line_item>
Could you help? Thanks!I was told that you cannot nest templates, so obviously that needs correction. Could someone provide a worked out solution please?
XML
XSL