diff --git a/patch_fxsl.patch b/patch_fxsl.patch
new file mode 100644
index 0000000..cb794cf
--- /dev/null
+++ b/patch_fxsl.patch
@@ -0,0 +1,77 @@
+diff -c -r dependencies/fxsl/fxsl-xslt2/f/func-type.xsl dependencies.new/fxsl/fxsl-xslt2/f/func-type.xsl
+*** dependencies/fxsl/fxsl-xslt2/f/func-type.xsl 2019-05-22 17:56:02.093542820 +0200
+--- dependencies.new/fxsl/fxsl-xslt2/f/func-type.xsl 2019-05-22 17:56:02.120210313 +0200
+***************
+*** 1,6 ****
+ xs:string
+
+
+!
+\ Kein Zeilenumbruch am Dateiende.
+--- 180,183 ----
+ xs:string
+
+
+!
+diff -c -r dependencies/fxsl/fxsl-xslt2/f/func-XpathConstructors.xsl dependencies.new/fxsl/fxsl-xslt2/f/func-XpathConstructors.xsl
+*** dependencies/fxsl/fxsl-xslt2/f/func-XpathConstructors.xsl 2019-05-22 17:56:02.093542820 +0200
+--- dependencies.new/fxsl/fxsl-xslt2/f/func-XpathConstructors.xsl 2019-05-22 17:56:02.120210313 +0200
+***************
+*** 1,7 ****
+
+--- 1,7 ----
+
+***************
+*** 676,679 ****
+
+
+
+!
+\ Kein Zeilenumbruch am Dateiende.
+--- 676,679 ----
+
+
+
+!
+diff -c -r dependencies/fxsl/fxsl-xslt2/Tests/testFunc-apply.xsl dependencies.new/fxsl/fxsl-xslt2/Tests/testFunc-apply.xsl
+*** dependencies/fxsl/fxsl-xslt2/Tests/testFunc-apply.xsl 2019-05-22 17:56:02.096876257 +0200
+--- dependencies.new/fxsl/fxsl-xslt2/Tests/testFunc-apply.xsl 2019-05-22 17:56:02.123543750 +0200
+***************
+*** 53,56 ****
+
+
+
+!
+\ Kein Zeilenumbruch am Dateiende.
+--- 53,56 ----
+
+
+
+!
diff --git a/scripts/init.sh b/scripts/init.sh
index c4fc133..db3b6cf 100755
--- a/scripts/init.sh
+++ b/scripts/init.sh
@@ -5,13 +5,15 @@ TEI_DIR=$BASE_DIR/tei
DEP_DIR="$BASE_DIR/dependencies"
+wd=$(pwd)
+
# download TEI repositories:
mkdir -vp "$TEI_DIR"
cd "$TEI_DIR"
git clone https://github.com/TEIC/TEI.git
git clone https://github.com/TEIC/Stylesheets.git
-cd ..
+cd "$wd"
# download some schemata from TEI:
wget -P $BASE_DIR/schema/tei/rnc http://www.tei-c.org/Vault/P5/current/xml/tei/custom/schema/relaxng/tei_all.rnc
@@ -24,5 +26,9 @@ mkdir -vp "$DEP_DIR/fxsl"
wget -P "$DEP_DIR/fxsl" https://sourceforge.net/projects/fxsl/files/FXSL%20for%20XSLT%202/FXSL%202.0/fxsl-xslt2.zip
unzip -d "$DEP_DIR/fxsl" "$DEP_DIR/fxsl/*.zip"
# ln -s "../dependencies/fxsl/fxsl-xslt2" "$BASE_DIR/stylesheets/fxsl"
+# patch fxsl:
+cd $BASE_DIR
+patch -p0 -i patch_fxsl.patch
+cd "$wd"
$(realpath $BASE_DIR)/scripts/updateOutput.sh