Stream: pascal
Topic: How to add a renderer for exampleScenario
Jose Costa Teixeira (Nov 13 2019 at 20:59):
I currently have a"publish" option for exampleScenarios which asks where the "renderer" can be found (and offers a place to download it from).
Jose Costa Teixeira (Nov 13 2019 at 21:01):
Then it runs a .bat, which does:
- create plantuml format using xslt
- create the SVG using plantUML
- create the whole html using another xslt
Jose Costa Teixeira (Nov 13 2019 at 21:02):
I don't know if the sequence can be minimized but I think not. What I am wondering is what is the best way to handle this.
Jose Costa Teixeira (Nov 13 2019 at 21:02):
should I have this renderer in a standard location?
Grahame Grieve (Nov 13 2019 at 21:02):
what is 'the renderer'?
Jose Costa Teixeira (Nov 13 2019 at 21:02):
the renderer is the .bat + xslts
Jose Costa Teixeira (Nov 13 2019 at 21:03):
and a couple folders to keep it neat
Jose Costa Teixeira (Nov 13 2019 at 21:03):
for my own convenience I packed an xslt processor and plantuml, so I'm also sure those should not be there in a "proper" version
Jose Costa Teixeira (Nov 13 2019 at 21:05):
it also contains the dependencies for the html - I just got lazy at the time and used one of the pages from an IG, so the html contains the logos, the css, etc.
Jose Costa Teixeira (Nov 13 2019 at 21:08):
Jose Costa Teixeira (Nov 13 2019 at 21:09):
this is what I have there, besides 2 jars: plantuml and saxon9he
Jose Costa Teixeira (Nov 13 2019 at 21:11):
I want to move this from "works on my machine" to a convenient way for others to do it
Jose Costa Teixeira (Nov 13 2019 at 21:12):
Anyway, not urgent, so perhaps to discuss in Amsterdam, time allowing?
Grahame Grieve (Nov 13 2019 at 22:11):
sure Amsterdam is good
Jose Costa Teixeira (Nov 21 2019 at 15:20):
pasted image
So this is what I want to get rid of. It's similar but simpler than the IG publisher. It generates one static page.
If I understood well, I can put my xslt in the fhir package. How would I code "run this xslt on this resource XML, and display the resulting html on a browser)
Last updated: Apr 12 2022 at 19:14 UTC