Skip to content

Commit

Permalink
in index.html metadata, ignore <keyword> metadata in @keys definitions
Browse files Browse the repository at this point in the history
Signed-off-by: chrispy <[email protected]>
  • Loading branch information
chrispy-snps committed Feb 17, 2024
1 parent d4722d6 commit cc670d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/plugins/org.dita.html5/xsl/get-meta.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ See the accompanying LICENSE file for applicable license.
<xsl:variable name="keywords-content">
<!-- for each item inside keywords (including nested index terms) -->
<xsl:for-each select="descendant::*[contains(@class,' topic/prolog ')]/*[contains(@class,' topic/metadata ')]/*[contains(@class,' topic/keywords ')]/descendant-or-self::* |
descendant::*[contains(@class,' map/topicmeta ')]/*[contains(@class,' topic/keywords ')]/descendant-or-self::* |
descendant::*[contains(@class,' map/topicmeta ')]/*[contains(@class,' topic/metadata ')]/*[contains(@class,' topic/keywords ')]/descendant-or-self::*">
descendant::*[contains(@class,' map/topicmeta ')][not(ancestor::*[@keys])]/*[contains(@class,' topic/keywords ')]/descendant-or-self::* |
descendant::*[contains(@class,' map/topicmeta ')][not(ancestor::*[@keys])]/*[contains(@class,' topic/metadata ')]/*[contains(@class,' topic/keywords ')]/descendant-or-self::*">
<!-- If this is the first term or keyword with this value -->
<xsl:if test="generate-id(key('meta-keywords',text()[1])[1]) = generate-id(.)">
<xsl:if test="position() > 2">
Expand Down

0 comments on commit cc670d5

Please sign in to comment.