From f9bd5d573fe57e8c7fcad0797ac03dcdc7078474 Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Mon, 1 May 2023 12:09:47 -0400 Subject: [PATCH 1/3] Fix #607, I hope: With @trishaoconnor, change the "makeTEIVersion" template in odds/teiodds.xsl so that a) it does not output the string "P5 Version " as part of the version URL; and b) it outputs the version information on 1 line instead of two. --- odds/teiodds.xsl | 366 ++++++++++++++++++++++------------------------- 1 file changed, 175 insertions(+), 191 deletions(-) diff --git a/odds/teiodds.xsl b/odds/teiodds.xsl index 679921114..f35173710 100644 --- a/odds/teiodds.xsl +++ b/odds/teiodds.xsl @@ -23,7 +23,7 @@ Unported License http://creativecommons.org/licenses/by-sa/3.0/ 2. http://www.opensource.org/licenses/BSD-2-Clause - + Redistribution and use in source and binary forms, with or without @@ -153,7 +153,7 @@ of this software, even if advised of the possibility of such damage. - /xml/tei/odd/p5subset.xml + /xml/tei/odd/p5subset.xml @@ -194,13 +194,13 @@ of this software, even if advised of the possibility of such damage. - - This formatted version of the Guidelines was created on - . - + + This formatted version of the Guidelines was created on + . + - + @@ -232,7 +232,7 @@ of this software, even if advised of the possibility of such damage. /> - + @@ -257,10 +257,10 @@ of this software, even if advised of the possibility of such damage. - + - + @@ -272,10 +272,10 @@ of this software, even if advised of the possibility of such damage. - + - + @@ -296,11 +296,11 @@ of this software, even if advised of the possibility of such damage. - - + + - + @@ -308,7 +308,7 @@ of this software, even if advised of the possibility of such damage. - + @@ -345,11 +345,11 @@ of this software, even if advised of the possibility of such damage. - + - + @@ -432,7 +432,7 @@ of this software, even if advised of the possibility of such damage. false - - - - - - - - - - - - - - - - - TEI Edition: - - TEI Edition Location: - - - - - Edition: - - + + + + + + + + + + + + + Edition: + + - + @@ -1914,8 +1898,8 @@ select="$makeDecls"/> @@ -1990,28 +1974,28 @@ select="$makeDecls"/> - - - - - - /@ - - - - - - @ - - - - - - - - + + + + + + /@ + + + + + + @ + + + + + + + + @@ -2019,7 +2003,7 @@ select="$makeDecls"/> - + @@ -2035,10 +2019,10 @@ select="$makeDecls"/> + if (@ns='http://www.tei-c.org/ns/1.0') then '' + else if (@ns) then @ns + else if (ancestor::tei:schemaSpec/@ns) then + ancestor::tei:schemaSpec/@ns else '',@ident)"/> @@ -2062,21 +2046,21 @@ select="$makeDecls"/> + select="*|@*|processing-instruction()|text()" mode="justcopy"/> + select="*|@*|processing-instruction()|text()" mode="justcopy"/> + select="*|@*|processing-instruction()|text()" mode="justcopy"/> @@ -2183,7 +2167,7 @@ select="$makeDecls"/> - + @@ -2195,7 +2179,7 @@ select="$makeDecls"/> - + @@ -2332,22 +2316,22 @@ select="$makeDecls"/> - - - - - - - - + + + + + + + + - - - - - - + + + + + + @@ -2374,40 +2358,40 @@ select="$makeDecls"/> + select="ancestor::*[@prefix][1]/@prefix"/> - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -2417,11 +2401,11 @@ select="$makeDecls"/> - true - true - false - false - true + true + true + false + false + true From 4d17c5f453bb24fd5fe3fde7e4b8c65eb8062d9c Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Mon, 1 May 2023 13:18:40 -0400 Subject: [PATCH 2/3] =?UTF-8?q?More=20work=20on=20#607:=20Get=20output=20t?= =?UTF-8?q?o=20pass=20tests:=20=20*=20Update=20routine=20so=20that=20it=20?= =?UTF-8?q?deals=20with=20both=20=E2=80=9CP5=20Version=20=E2=80=A6?= =?UTF-8?q?=E2=80=9D=20and=20=E2=80=9CVersion=20=E2=80=A6=E2=80=9D=20=20*?= =?UTF-8?q?=20Update=20Makefile=20so=20that=20test35.rnc=20has=20these=20c?= =?UTF-8?q?omments=20stripped=20out=20correctly=20=20*=20Update=20some=20e?= =?UTF-8?q?xpected=20results=20because=20of=20*slight*=20comment=20differe?= =?UTF-8?q?nces=20that=20should=20be=20ignored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/Makefile | 4 ++-- Test/expected-results/test-pure.rnc | 2 -- Test/expected-results/test-pure2.rnc | 2 -- Test/expected-results/test15.odd.rnc | 2 -- Test/expected-results/test21.odd.rnc | 8 +++----- Test/expected-results/test30.rnc | 8 +++----- Test/expected-results/test33.rnc | 2 -- Test/expected-results/test34.rnc | 2 -- debian-tei-xsl/debian/changelog | 6 ++++++ odds/teiodds.xsl | 4 ++-- 10 files changed, 16 insertions(+), 24 deletions(-) diff --git a/Test/Makefile b/Test/Makefile index 98de952aa..fda052bfd 100644 --- a/Test/Makefile +++ b/Test/Makefile @@ -751,11 +751,11 @@ test-namespaces: actual $(BINDIR)/teitornc $(FLAGS) test35.odd $(AR)/test35.rnc perl -p -i -e 's/generated from ODD source .*//' $(AR)/test35.rnc - perl -i -pe 'BEGIN{undef $$/;} s/# ?Schema[^#]+#[^#]+#[^#]+#[^#]+#\n//smg' $(AR)/test35.rnc + perl -i -pe 'BEGIN{undef $$/;} s/# ?Schema[^#]+#[^#]+#[^#]+#\n//smg' $(AR)/test35.rnc if [ $(DIFFNOW) -eq 1 ]; \ then diff -bBw $(AR)/test35.rnc $(ER)/test35.rnc; \ else echo "==deferring: \` diff -bBw $(AR)/test35.rnc $(ER)/test35.rnc \`"; fi - + #HBS 2022-04-30 tests attributes @include and @except $(BINDIR)/teitornc $(FLAGS) testClass.odd $(AR)/testClass.rnc perl -p -i -e 's/generated from ODD source .*//' $(AR)/testClass.rnc diff --git a/Test/expected-results/test-pure.rnc b/Test/expected-results/test-pure.rnc index e2e64620b..0cf4f8342 100644 --- a/Test/expected-results/test-pure.rnc +++ b/Test/expected-results/test-pure.rnc @@ -6,8 +6,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xlink = "http://www.w3.org/1999/xlink" -# - sch:ns [ prefix = "tei" uri = "http://www.tei-c.org/ns/1.0" ] stuff = diff --git a/Test/expected-results/test-pure2.rnc b/Test/expected-results/test-pure2.rnc index f2104220e..7458800bc 100644 --- a/Test/expected-results/test-pure2.rnc +++ b/Test/expected-results/test-pure2.rnc @@ -5,8 +5,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xlink = "http://www.w3.org/1999/xlink" -# - sch:ns [ prefix = "tei" uri = "http://www.tei-c.org/ns/1.0" ] stuffPart = bob | bit stuff = diff --git a/Test/expected-results/test15.odd.rnc b/Test/expected-results/test15.odd.rnc index 1a69302d5..97df284d6 100644 --- a/Test/expected-results/test15.odd.rnc +++ b/Test/expected-results/test15.odd.rnc @@ -7,8 +7,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" - -# macro.abContent = (text | model.paraPart | ab)* macro.paraContent = (text | model.paraPart)* macro.limitedContent = (text | model.limitedPhrase | model.inter)* diff --git a/Test/expected-results/test21.odd.rnc b/Test/expected-results/test21.odd.rnc index b6ed8ccd6..33cd31fbd 100644 --- a/Test/expected-results/test21.odd.rnc +++ b/Test/expected-results/test21.odd.rnc @@ -7,8 +7,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" - -# macro.abContent = (text | model.paraPart | ab)* macro.paraContent = (text | model.paraPart)* macro.limitedContent = (text | model.limitedPhrase | model.inter)* @@ -8093,9 +8091,9 @@ facsimile = sch:report [ test = "child::text()[ normalize-space(.) ne '']" "\x{a}" ~ - " A facsimile element represents a text with images, thus\x{a}" ~ - " transcribed text should not be present within it.\x{a}" ~ - " " + " A facsimile element represents a text with images, thus\x{a}" ~ + " transcribed text should not be present within it.\x{a}" ~ + " " ] "\x{a}" ~ " " diff --git a/Test/expected-results/test30.rnc b/Test/expected-results/test30.rnc index 3d5ef19d6..0c8e66532 100644 --- a/Test/expected-results/test30.rnc +++ b/Test/expected-results/test30.rnc @@ -8,8 +8,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" - -# Tmacro.abContent = (text | Tmodel.paraPart | Tab)* Tmacro.paraContent = (text | Tmodel.paraPart)* Tmacro.limitedContent = (text | Tmodel.limitedPhrase | Tmodel.inter)* @@ -6488,9 +6486,9 @@ Tfacsimile = sch:report [ test = "child::text()[ normalize-space(.) ne '']" "\x{a}" ~ - " A facsimile element represents a text with images, thus\x{a}" ~ - " transcribed text should not be present within it.\x{a}" ~ - " " + " A facsimile element represents a text with images, thus\x{a}" ~ + " transcribed text should not be present within it.\x{a}" ~ + " " ] "\x{a}" ~ " " diff --git a/Test/expected-results/test33.rnc b/Test/expected-results/test33.rnc index d14e38820..c7920a1bc 100644 --- a/Test/expected-results/test33.rnc +++ b/Test/expected-results/test33.rnc @@ -9,8 +9,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" - -# tei_macro.abContent = (text | tei_model.paraPart | tei_ab)* tei_macro.paraContent = (text | tei_model.paraPart)* tei_macro.limitedContent = diff --git a/Test/expected-results/test34.rnc b/Test/expected-results/test34.rnc index b8b34fac4..ca16a1306 100644 --- a/Test/expected-results/test34.rnc +++ b/Test/expected-results/test34.rnc @@ -10,8 +10,6 @@ namespace teix = "http://www.tei-c.org/ns/Examples" namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" - -# tei_macro.abContent = (text | tei_model.paraPart | tei_ab)* tei_macro.paraContent = (text | tei_model.paraPart)* tei_macro.limitedContent = diff --git a/debian-tei-xsl/debian/changelog b/debian-tei-xsl/debian/changelog index 36f1cd55d..94cba8d54 100644 --- a/debian-tei-xsl/debian/changelog +++ b/debian-tei-xsl/debian/changelog @@ -1,3 +1,9 @@ +tei-xsl (7.56.0a) natty; urgency=low + + * new release from upstream + + -- TEI Mon, 01 May 2023 12:16:18 -0400 + tei-xsl (7.55.0a) natty; urgency=low * new release from upstream diff --git a/odds/teiodds.xsl b/odds/teiodds.xsl index f35173710..6990b6ae7 100644 --- a/odds/teiodds.xsl +++ b/odds/teiodds.xsl @@ -1869,13 +1869,13 @@ select="$makeDecls"/> - + From 4c2488a5dc8be79a73685234020bdbcb826a822b Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Mon, 1 May 2023 18:16:20 -0400 Subject: [PATCH 3/3] Oops, forgot one --- Test/expected-results/testClass.rnc | 2 -- 1 file changed, 2 deletions(-) diff --git a/Test/expected-results/testClass.rnc b/Test/expected-results/testClass.rnc index d508164ef..5a3d22e98 100644 --- a/Test/expected-results/testClass.rnc +++ b/Test/expected-results/testClass.rnc @@ -8,8 +8,6 @@ namespace xi = "http://www.w3.org/2001/XInclude" namespace xlink = "http://www.w3.org/1999/xlink" -# - sch:ns [ prefix = "tei" uri = "http://www.tei-c.org/ns/1.0" ] macro.paraContent = (text | model.paraPart)* att.written.attributes = att.written.attribute.hand