From 6050a9ed95cf273c4cdc0538fd56850afc83fbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Mon, 20 Nov 2023 12:40:37 +0100 Subject: [PATCH] fix visualization for non xml documents --- .../core/visualization/DocumentVisualizationBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/digital/slovensko/autogram/core/visualization/DocumentVisualizationBuilder.java b/src/main/java/digital/slovensko/autogram/core/visualization/DocumentVisualizationBuilder.java index b242e6706..1eeb64f02 100644 --- a/src/main/java/digital/slovensko/autogram/core/visualization/DocumentVisualizationBuilder.java +++ b/src/main/java/digital/slovensko/autogram/core/visualization/DocumentVisualizationBuilder.java @@ -50,9 +50,10 @@ private Visualization createVisualization(SigningJob job) } var transformation = parameters.getTransformation(); - var transformationOutputMimeType = parameters.getXsltDestinationType(); if (isDocumentSupportingTransformation(documentToDisplay) && isTranformationAvailable(transformation)) { + var transformationOutputMimeType = parameters.getXsltDestinationType(); + if (transformationOutputMimeType.equals("HTML")) return new HTMLVisualization(EFormUtils.transform(documentToDisplay, transformation), job);