# In-Table List With Alternate Content in HTML Document
In-Table List With Alternate Content in HTML Document with GroupDocs.Assembly for Python via .NET: the template, the Python data and the code.
{{< alert style="info" >}}In this article, we will use GroupDocs.Assembly to generate In-Table Master-Detail report in HTML Document format.{{< /alert >}}
## In-Table List With Alternate Content in HTML Document
### Reporting Requirement
As a report developer, you are required to represent your products and their prices with the following key requirements:
* Report must show each product along with its price.
* It must show sum of all the prices.
* It must represent all the information in tabular form.
* Report must be generated in the HTML Document.
### Adding Syntax to be evaluated by GroupDocs.Assembly Engine
Products | Order Price |
<<if [!Any()]>>No data |
<<else>><<foreach [in orders]>><<[Product.ProductName]>> | <<[Price]>><</foreach>> |
Total: | <<[Sum(c => c.Price)]>><</if>> |
| |
{{< alert style="success" >}}For detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine{{< /alert >}}
### Download In-Table List With Alternate Content Template
Please download the sample In-Table list with alternate content document we created in this article:
* [in-table-list-with-alternate-content.html](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-alternate-content/in-table-list-with-alternate-content-in-html-document/in-table-list-with-alternate-content.html)
### Generating The Report
{{< alert style="info" >}}The example reads the shop data described in [The Business Layer]({{< ref "assembly/python-net/developer-guide/basic-usage/working-with-a-business-case/the-business-layer.md" >}}).{{< /alert >}}
{{< tabs "example1" >}}
{{< tab "Python" >}}
```python
import json
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
with open("orders.json", encoding="utf-8") as f:
orders = json.load(f)
assembler = DocumentAssembler()
assembler.assemble_document("in-table-list-with-alternate-content.html", "in-table-list-with-alternate-content-report.html", DataSourceInfo(orders, "orders"))
```
{{< /tab >}}
{{< tab "in-table-list-with-alternate-content.html" >}}
{{< tab-text >}}
The following sample file is used in this example: [in-table-list-with-alternate-content.html](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-alternate-content/in-table-list-with-alternate-content-in-html-document/in-table-list-with-alternate-content.html)
{{< /tab-text >}}
{{< /tab >}}
{{< tab "orders.json" >}}
{{< tab-text >}}
The following sample file is used in this example: [orders.json](https://docs.groupdocs.com/assembly/python-net/_sample_files/developer-guide/advanced-usage/working-with-table-reports-alternate-content/in-table-list-with-alternate-content-in-html-document/orders.json)
{{< /tab-text >}}
{{< /tab >}}
{{< tab "in-table-list-with-alternate-content-report.html" >}}
```text
Regular text. Highlighted text.
|
Customer
|
Order Price
|
[TRUNCATED]
```
[Download full output](https://docs.groupdocs.com/assembly/python-net/_output_files/developer-guide/advanced-usage/working-with-table-reports-alternate-content/in-table-list-with-alternate-content-in-html-document/generating_the_report/in-table-list-with-alternate-content-report.html)
{{< /tab >}}
{{< /tabs >}}