Skip to content

Commit

Permalink
Oops — fix code to match comment:
Browse files Browse the repository at this point in the history
Test only those <gloss>s and <desc>s that actually do not have a type= attribute.
  • Loading branch information
sydb committed Jan 4, 2024
1 parent e3aac9d commit aca9d4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1237,11 +1237,11 @@ of this software, even if advised of the possibility of such damage.
<xsl:variable name="lang" select="tei:generateDocumentationLang($context)[1]"/>
<xsl:variable name="test_results" as="xs:boolean*">
<!-- first test <gloss> children without @type -->
<xsl:sequence select="$context/tei:gloss[ @xml:lang eq 'en' ]/@versionDate
> $context/tei:gloss[ @xml:lang eq $lang ]/@versionDate"/>
<xsl:sequence select="$context/tei:gloss[ not(@type) ][ @xml:lang eq 'en' ]/@versionDate
> $context/tei:gloss[ not(@type) ][ @xml:lang eq $lang ]/@versionDate"/>
<!-- second test <desc> children wwithout @type -->
<xsl:sequence select="$context/tei:desc[ @xml:lang eq 'en' ]/@versionDate
> $context/tei:desc[ @xml:lang eq $lang ]/@versionDate"/>
<xsl:sequence select="$context/tei:desc[ not(@type) ][ @xml:lang eq 'en' ]/@versionDate
> $context/tei:desc[ not(@type) ][ @xml:lang eq $lang ]/@versionDate"/>
<!-- next test <gloss> children with @type -->
<xsl:for-each select="distinct-values( $context/tei:gloss/@type )">
<xsl:sequence select="$context/tei:gloss[ @type eq . ][ @xml:lang eq 'en' ]/@versionDate
Expand Down
6 changes: 6 additions & 0 deletions debian-tei-xsl/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
tei-xsl (7.57.0a) natty; urgency=low

* new release from upstream

-- TEI <[email protected]> Thu, 04 Jan 2024 14:25:06 -0500

tei-xsl (7.56.0a) natty; urgency=low

* new release from upstream
Expand Down

0 comments on commit aca9d4e

Please sign in to comment.