From e3aac9d3c29c62326a4a4aba90471e694b572b52 Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Fri, 15 Dec 2023 11:58:23 -0500 Subject: [PATCH 1/3] Alter tei:descOrGlossOutOfDate() so that it will compare multiple elements; also test the desc or gloss elements based on type attribute --- common/functions.xsl | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/common/functions.xsl b/common/functions.xsl index d23c982db..fff4c88f7 100644 --- a/common/functions.xsl +++ b/common/functions.xsl @@ -1124,11 +1124,11 @@ of this software, even if advised of the possibility of such damage. @@ -1234,13 +1234,27 @@ of this software, even if advised of the possibility of such damage. - - - - + + + + + + + + + + + + + + + + + From aca9d4e317c5059e5e4a62dbc093fa9a10b0062e Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Thu, 4 Jan 2024 14:29:24 -0500 Subject: [PATCH 2/3] =?UTF-8?q?Oops=20=E2=80=94=20fix=20code=20to=20match?= =?UTF-8?q?=20comment:=20Test=20only=20those=20s=20and=20s=20?= =?UTF-8?q?that=20actually=20do=20not=20have=20a=20type=3D=20attribute.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/functions.xsl | 8 ++++---- debian-tei-xsl/debian/changelog | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/common/functions.xsl b/common/functions.xsl index fff4c88f7..5b2a83ab7 100644 --- a/common/functions.xsl +++ b/common/functions.xsl @@ -1237,11 +1237,11 @@ of this software, even if advised of the possibility of such damage. - + - + + - + gt $context/tei:gloss[ not(@type) ][ @xml:lang eq $lang ]/@versionDate"/> + + gt $context/tei:desc[ not(@type) ][ @xml:lang eq $lang ]/@versionDate"/> + gt $context/tei:gloss[ @type eq . ][ @xml:lang eq $lang ]/@versionDate"/> - + + gt $context/tei:desc[ @type eq . ][ @xml:lang eq $lang ]/@versionDate"/>