Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch fxsl to solve namespace problem in fxsl
  • Loading branch information
EsGeh authored and EsGeh committed May 22, 2019
1 parent 753ac7a commit e76797a
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 1 deletion.
77 changes: 77 additions & 0 deletions 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 ****
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
! xmlns:xdt="http://www.w3.org/2005/04/xpath-datatypes"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="f xs xdt"
--- 1,6 ----
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
! xmlns:xdt="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="f xs xdt"
***************
*** 180,183 ****
<xsl:otherwise>xs:string</xsl:otherwise>
</xsl:choose>
</xsl:function>
! </xsl:stylesheet>
\ Kein Zeilenumbruch am Dateiende.
--- 180,183 ----
<xsl:otherwise>xs:string</xsl:otherwise>
</xsl:choose>
</xsl:function>
! </xsl:stylesheet>
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 ****
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
! xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="xs xdt f"
>
--- 1,7 ----
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
! xmlns:xdt="http://www.w3.org/2001/XMLSchema"
xmlns:f="http://fxsl.sf.net/"
exclude-result-prefixes="xs xdt f"
>
***************
*** 676,679 ****
<xsl:sequence select="xdt:dayTimeDuration($arg1)"/>
</xsl:function>

! </xsl:stylesheet>
\ Kein Zeilenumbruch am Dateiende.
--- 676,679 ----
<xsl:sequence select="xdt:dayTimeDuration($arg1)"/>
</xsl:function>

! </xsl:stylesheet>
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 ****

<xsl:sequence select="5*$arg1"/>
</xsl:function>
! </xsl:stylesheet>
\ Kein Zeilenumbruch am Dateiende.
--- 53,56 ----

<xsl:sequence select="5*$arg1"/>
</xsl:function>
! </xsl:stylesheet>
8 changes: 7 additions & 1 deletion scripts/init.sh
Expand Up @@ -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
Expand All @@ -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

0 comments on commit e76797a

Please sign in to comment.