Skip to content

Commit

Permalink
Use namespace in XsltTransformationService
Browse files Browse the repository at this point in the history
RISDEV-0000
  • Loading branch information
malte-laukoetter committed Jan 3, 2025
1 parent 5993aca commit 5cffc25
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.bund.digitalservice.ris.norms.application.service;

import de.bund.digitalservice.ris.norms.application.port.input.TransformLegalDocMlToHtmlUseCase;
import de.bund.digitalservice.ris.norms.domain.entity.Namespace;
import de.bund.digitalservice.ris.norms.utils.exceptions.XmlProcessingException;
import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -42,7 +43,9 @@ public String transformLegalDocMlToHtml(TransformLegalDocMlToHtmlUseCase.Query q
String inputXml = query.xml();
if (query.snippet()) {
inputXml =
"<akn:akomaNtoso xmlns:akn=\"http://Inhaltsdaten.LegalDocML.de/1.7.1/\">" +
"<akn:akomaNtoso xmlns:akn=\"" +
Namespace.INHALTSDATEN.getNamespaceUri() +
"\">" +
inputXml +
"</akn:akomaNtoso>";
}
Expand Down

0 comments on commit 5cffc25

Please sign in to comment.