Skip to content

Commit

Permalink
in index.html metadata, ignore <keyword> metadata in @keys/@href cont…
Browse files Browse the repository at this point in the history
…exts

Signed-off-by: chrispy <[email protected]>
  • Loading branch information
chrispy-snps committed Feb 17, 2024
1 parent d4722d6 commit a084ae8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/plugins/org.dita.html5/xsl/get-meta.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,11 @@ See the accompanying LICENSE file for applicable license.
<!-- CONTENT: Subject - prolog/metadata/keywords -->
<xsl:template match="*" mode="gen-keywords-metadata">
<xsl:variable name="keywords-content">
<!-- for each item inside keywords (including nested index terms) -->
<!-- consider keywords (including nested index terms
(but for map-level metadata, ignore keydef-specific or topic-specific keywords) -->
<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::*[@href or @keys])]/*[contains(@class,' topic/keywords ')]/descendant-or-self::* |
descendant::*[contains(@class,' map/topicmeta ')][not(ancestor::*[@href or @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 a084ae8

Please sign in to comment.