diff --git a/fj-doc-mod-fop/src/main/resources/fj_doc_mod_fop_config/template/macro/doc_element.ftl b/fj-doc-mod-fop/src/main/resources/fj_doc_mod_fop_config/template/macro/doc_element.ftl index 789b5a1e8..2cf046e14 100644 --- a/fj-doc-mod-fop/src/main/resources/fj_doc_mod_fop_config/template/macro/doc_element.ftl +++ b/fj-doc-mod-fop/src/main/resources/fj_doc_mod_fop_config/template/macro/doc_element.ftl @@ -56,7 +56,7 @@ <#macro handleImage docImage> > <#if docImage.svg> - ${base64ToString(docImage.resolvedBase64)} + fox:alt-text="${docImage.alt}" xmlns:svg="http://www.w3.org/2000/svg">${base64ToString(docImage.resolvedBase64)} <#else> <#if (docImage.scaling)??> <#assign imageScaling="height='${docImage.scaling}%' content-height='${docImage.scaling}%' content-width='scale-to-fit' scaling='uniform' width='${docImage.scaling}%'"/> diff --git a/fj-doc-mod-fop/src/test/resources/sample/doc_alt_01.xml b/fj-doc-mod-fop/src/test/resources/sample/doc_alt_01.xml index 279304683..95f3e0c96 100644 --- a/fj-doc-mod-fop/src/test/resources/sample/doc_alt_01.xml +++ b/fj-doc-mod-fop/src/test/resources/sample/doc_alt_01.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://javacoredoc.fugerit.org https://www.fugerit.org/data/java/doc/xsd/doc-2-1.xsd"> 10;10;10;30 collapse @@ -10,7 +10,7 @@ Alternative sample doc - Test SGVTest SGV