Skip to content

Commit

Permalink
Merge pull request #334 from solver-it-sro/fix/no-non-xml-visualization
Browse files Browse the repository at this point in the history
Fix non-xml document visualization
  • Loading branch information
celuchmarek authored Nov 20, 2023
2 parents 7319739 + 6050a9e commit c5534f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c5534f4

Please sign in to comment.