Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Mar 20, 2024
1 parent 0275de3 commit 6f4abb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 6f4abb6

Please sign in to comment.