Skip to content

Commit

Permalink
version 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anneferger committed Jan 26, 2024
1 parent 4174e16 commit fd183e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>de.edirom.meigarage</groupId>
<artifactId>mei-customization</artifactId>
<version>0.6.3</version>
<version>0.7.0</version>
<properties>

<project.build.sourceEncoding>
Expand Down Expand Up @@ -93,11 +93,6 @@
<version>0.5.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.8.0-7</version>
</dependency>
<dependency>
<groupId>org.tei</groupId>
<artifactId>tei-javalib</artifactId>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/de/edirom/meigarage/mei/MEICustomization.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class MEICustomization implements Customization, ErrorHandler {
List<String> outputFormats = new ArrayList<String>();

sources.add(new CustomizationSourceInputType("meidev", "MEI dev", CustomizationSourceInputType.TYPE_SERVER_FILE, "source/mei-source_canonicalized.xml"));
sources.add(new CustomizationSourceInputType("mei500", "MEI v5.0", CustomizationSourceInputType.TYPE_SERVER_FILE, "source/mei-source_canonicalized.xml"));
sources.add(new CustomizationSourceInputType("mei401", "MEI v4.0.1", CustomizationSourceInputType.TYPE_SERVER_FILE, "source/mei-source_canonicalized.xml"));
sources.add(new CustomizationSourceInputType("mei300", "MEI v3.0.0", CustomizationSourceInputType.TYPE_SERVER_FILE, "source/mei-source_canonicalized.xml"));
sources.add(new CustomizationSourceInputType("mei211", "MEI v2.1.1", CustomizationSourceInputType.TYPE_SERVER_FILE, "source/mei-source_canonicalized.xml"));
Expand Down Expand Up @@ -240,10 +241,11 @@ private void performCustomization(String outputFormat, String sourcePath, String

private File transformToRelaxNG(File processedOddFile, File outTempDir, String customizationName, String sourcePath) throws FileNotFoundException, SaxonApiException {
Processor proc = SaxonProcFactory.getProcessor();

XsltCompiler comp = proc.newXsltCompiler();

StreamSource xslt = new StreamSource(new FileInputStream(new File(
TEI_DIR + "/odds/odd2relax.xsl")));
StreamSource xslt = new StreamSource(new FileInputStream(
TEI_DIR + "/odds/odd2relax.xsl"));
xslt.setSystemId(TEI_DIR + "/odds/odd2relax.xsl");
XsltExecutable exec = comp.compile(xslt);
XsltTransformer transformer = exec.load();
Expand Down

0 comments on commit fd183e8

Please sign in to comment.