From 6f4abb65ce3f151b9a355361ce56cbd81bdd0fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Guimar=C3=A3es?= Date: Wed, 20 Mar 2024 09:03:04 +0000 Subject: [PATCH] wip --- .../src/main/java/org/roda/core/common/MetadataUtils.java | 1 - .../src/main/java/org/roda/core/common/RodaUtils.java | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roda-core/roda-core/src/main/java/org/roda/core/common/MetadataUtils.java b/roda-core/roda-core/src/main/java/org/roda/core/common/MetadataUtils.java index ed6701d57c..9bfe9016e6 100644 --- a/roda-core/roda-core/src/main/java/org/roda/core/common/MetadataUtils.java +++ b/roda-core/roda-core/src/main/java/org/roda/core/common/MetadataUtils.java @@ -18,7 +18,6 @@ import java.util.Map; import org.glassfish.jaxb.runtime.api.JAXBRIContext; -import org.roda.core.common.characterization.model.TechnicalMetadata; import org.roda.core.data.v2.validation.ValidationException; import org.roda.core.data.v2.validation.ValidationIssue; import org.roda.core.data.v2.validation.ValidationReport; diff --git a/roda-core/roda-core/src/main/java/org/roda/core/common/RodaUtils.java b/roda-core/roda-core/src/main/java/org/roda/core/common/RodaUtils.java index 8167b5fd09..752807f48e 100644 --- a/roda-core/roda-core/src/main/java/org/roda/core/common/RodaUtils.java +++ b/roda-core/roda-core/src/main/java/org/roda/core/common/RodaUtils.java @@ -52,6 +52,7 @@ import net.sf.saxon.s9api.QName; import net.sf.saxon.s9api.SaxonApiException; import net.sf.saxon.s9api.XdmAtomicValue; +import net.sf.saxon.s9api.XdmMap; import net.sf.saxon.s9api.XdmValue; import net.sf.saxon.s9api.XsltCompiler; import net.sf.saxon.s9api.XsltExecutable; @@ -217,6 +218,10 @@ public static Reader applyMetadataStylesheet(Binary binary, String basePath, Str transformer.setParameter(qName, xdmValue); } + QName qNameMap = new QName("i18n"); + XdmMap xdmMap = XdmMap.makeMap(parameters); + transformer.setParameter(qNameMap, xdmMap); + transformer.transform(); return new CharArrayReader(transformerResult.toCharArray());