Including pinset dataset into markdown file using picto [message #1856210] |
Mon, 28 November 2022 07:22 |
Raphael Trindade Messages: 5 Registered: November 2022 |
Junior Member |
|
|
Hello all,
firstly I'd like to thank you for the awesome work on Epsilon and share with you that I am really amazed by everything that is possible to accomplish with Epsilon!
I am currently working on a project where one of the features is to generate a markdown document including diagrams and tables. This file is currently included into a picto view for the purpose of having the document enhanced with existing diagrams and tables.
When rendering the file in the picto view the diagrams work fine. However, the included tables (from pinset) are broken and not rendered at all. In the visualization the following result appears:
"Attribute name "defer" associated with an element type "script" must be followed by the ' = ' character."
I looked around a bit and played around with the table generation code, thinking the problem was actually with the defer parameter. It is not. The issue seems to be with the browser widget interpreting the html (iexplore?! in my machine).
Therefore, I have set the SWT default engine to edge and chromium (in my eclipse.ini) to experiment. Unfortunately, even changing the widget default engine, both chrome and edge still fail to render the table with the same error!
I assume the issue could be that inclusion of the tables is not trivial as with the plantuml diagrams and this inclusion breaks the rendering for the markdown file (e.g. including the whole HTML information from tables?
Interesting enough, the beginning of the HTML rendering for diagrams is slightly different from the one from tables (e.g. no defer parameter) -- see below.
It would be great if I could get a pointer towards a solution on how to include tables from pinset into markdown, similarly to how this can be done with plantuml.
Thank you in advance!
Here how my current files look like for reference:
standalone.picto:
<?nsuri picto?>
<picto format="egx" transformation="documentation.egx" standalone="true">
<model type="EMF">
<parameter name="name" value="Documentation"/>
<parameter name="metamodelUri" value="model"/>
<parameter name="modelFile" file="../analysis/analysis.flexmi"/>
</model>
<view path="Documentation, Report (Markdown)" format="markdown" source="../transformations/Report.md"/>
</picto>
Report.md
## Overview Diagrams
<picto-view path="Structure, Overview Diagrams"/>
## Overview Tables
<picto-view path="Tables, Analysis Tables"/>
documentation.egx
rule AnalysisTables{
template : "platform:/resource/epsilon_documentation/queries/table.pinset"
parameters : Map {
"path" = Sequence{"Tables", "Analysis Tables"},
"icon" = "table",
"format" = "csv"
}
}
HTML snippet for diagrams:
<!DOCTYPE html><html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https
://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script>
</head>
<body style="zoom:1.0;">
<svg xmlns="http
://www.w3.org/2000/svg"
....
.....
HTML snippet for tables
<!DOCTYPE html><html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https
://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script><script>mermaid.initialize({startOnLoad:true});</script>
<link href="https
://cdn.metroui.org.ua/v4/css/metro-all.min.css" rel="stylesheet">
<script defer src="https
://cdn.metroui.org.ua/v4/js/metro.min.js"></script>
</head>
<body style="zoom:1.0;">
<table class="table striped table-border row-hover" data-horizontal-scroll="true" data-pagination="true" data-role="table">
<thead>
<th data-format="number" data-sort-dir="asc" data-sortable="true">ID</th>
.....
.....
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03180 seconds