Skip to content

Commit

Permalink
whitespace neu
Browse files Browse the repository at this point in the history
  • Loading branch information
martinantonmueller committed Jan 11, 2023
1 parent 003d25f commit 0185859
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 150 deletions.
7 changes: 7 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
<move todir="${editions}">
<fileset dir="${tmpDir}"/>
</move>
<xslt style="./import-xslts/remove-whitespace.xsl" basedir="./data/editions" destdir="${tmpDir}" includes="*.xml" extension=".xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<classpath location="${basedir}/saxon/saxon9he.jar"/>
</xslt>
<move todir="${editions}">
<fileset dir="${tmpDir}"/>
</move>
<delete dir="${tmpDir}"/>

</project>
32 changes: 0 additions & 32 deletions import-xslts/langesS-1.xsl

This file was deleted.

30 changes: 0 additions & 30 deletions import-xslts/langesS-2.xsl

This file was deleted.

22 changes: 0 additions & 22 deletions import-xslts/langesS-3.xsl

This file was deleted.

32 changes: 0 additions & 32 deletions import-xslts/remove-whitespace-1.xsl

This file was deleted.

34 changes: 0 additions & 34 deletions import-xslts/remove-whitespace-2.xsl

This file was deleted.

10 changes: 10 additions & 0 deletions import-xslts/remove-whitespace.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
<xsl:mode on-no-match="shallow-copy"/>
<xsl:output method="xml" indent="no"/>

<xsl:template match="text()[normalize-space(.)='' and ancestor::tei:div[parent::tei:body] or ancestor::tei:p[parent::tei:physDesc]]"/>


</xsl:stylesheet>

0 comments on commit 0185859

Please sign in to comment.