Skip to content

Commit 156aade

Browse files
authored
Merge pull request majlis-erc#796 from evolvedbinary/hotfix/tei-to-markdown
New TEI <-> Markfown transformation
2 parents de0959f + ade1da9 commit 156aade

16 files changed

Lines changed: 7384 additions & 458 deletions

pom.xml

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
<public.xar.repo.uri>https://exist-db.org/exist/apps/public-repo</public.xar.repo.uri>
5555

5656
<!-- NOTE(AR): this is used for generating forms in the xml-maven-plugin below -->
57-
<saxon.version>9.9.1-8</saxon.version>
57+
<saxon.version>12.9</saxon.version>
58+
59+
<xspec.version>3.1.3</xspec.version>
5860

5961
<!-- used in the EXPath Package Descriptor -->
6062
<package-title>${project.name}</package-title>
@@ -99,6 +101,18 @@
99101
<excludes>
100102
<exclude>modules/git-sync.xql</exclude>
101103
<exclude>services/git-commit.xql</exclude>
104+
105+
<!-- NOTE(AR) This is temporary to allow us to fix up the xsl:import URIs
106+
using some XSLT from the xml-maven-plugin below.
107+
For example: xsl:import in Elemental
108+
does not yet correctly resolve:
109+
<xsl:import href="markdown-to-tei.xslt"/>
110+
relative to the importing stylesheet.
111+
See: https://github.com/evolvedbinary/elemental/issues/169
112+
-->
113+
<exclude>services/manuforma-form-to-tei.xslt</exclude>
114+
<exclude>services/tei-to-manuforma-form.xslt</exclude>
115+
102116
</excludes>
103117
<targetPath>xar-resources</targetPath>
104118
</resource>
@@ -130,6 +144,30 @@
130144
</pluginManagement>
131145

132146
<plugins>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-enforcer-plugin</artifactId>
150+
<version>3.6.2</version>
151+
<executions>
152+
<execution>
153+
<id>enforce-maven-version</id>
154+
<goals>
155+
<goal>enforce</goal>
156+
</goals>
157+
<configuration>
158+
<rules>
159+
<requireJavaVersion>
160+
<version>[11,)</version>
161+
</requireJavaVersion>
162+
<requireMavenVersion>
163+
<version>[3.9.0,)</version>
164+
</requireMavenVersion>
165+
</rules>
166+
<fail>true</fail>
167+
</configuration>
168+
</execution>
169+
</executions>
170+
</plugin>
133171
<plugin>
134172
<groupId>com.code54.mojo</groupId>
135173
<artifactId>buildversion-plugin</artifactId>
@@ -209,11 +247,56 @@
209247
</parameters>
210248
<stylesheet>src/main/formGenerator/generateXForm.xsl</stylesheet>
211249
</transformationSet>
250+
251+
<transformationSet>
252+
<dir>src/main/xar-resources/services</dir>
253+
<includes>
254+
<include>manuforma-form-to-tei.xslt</include>
255+
<include>tei-to-manuforma-form.xslt</include>
256+
</includes>
257+
<parameters>
258+
<parameter>
259+
<name>db-collection-uri</name>
260+
<value>xmldb:exist:///db/apps/manuForma/services</value>
261+
</parameter>
262+
</parameters>
263+
<stylesheet>src/main/xslt/fix-xslt-imports-for-edb.xslt</stylesheet>
264+
<outputDir>${project.build.directory}/generated-xar-resources/services</outputDir>
265+
</transformationSet>
212266
</transformationSets>
213267
</configuration>
214268
</execution>
215269
</executions>
216270
</plugin>
271+
<plugin>
272+
<groupId>io.xspec.maven</groupId>
273+
<artifactId>xspec-maven-plugin</artifactId>
274+
<version>${xspec.version}</version>
275+
<executions>
276+
<execution>
277+
<id>services-xspec-tests</id>
278+
<phase>test</phase>
279+
<goals>
280+
<goal>run-xspec</goal>
281+
</goals>
282+
<configuration>
283+
<testDir>src/test/xar-resources</testDir>
284+
</configuration>
285+
</execution>
286+
</executions>
287+
<dependencies>
288+
<dependency>
289+
<groupId>io.xspec</groupId>
290+
<artifactId>xspec</artifactId>
291+
<version>${xspec.version}</version>
292+
</dependency>
293+
<dependency>
294+
<groupId>net.sf.saxon</groupId>
295+
<artifactId>Saxon-HE</artifactId>
296+
<version>${saxon.version}</version>
297+
</dependency>
298+
</dependencies>
299+
</plugin>
217300
<plugin>
218301
<groupId>ro.kuberam.maven.plugins</groupId>
219302
<artifactId>kuberam-expath-plugin</artifactId>

0 commit comments

Comments
 (0)