take description element from other element now

This commit is contained in:
Max Mehl 2021-06-21 15:18:06 +02:00
parent 6f5defcad7
commit 1ef89be9e2
Signed by: max.mehl
GPG Key ID: 2704E4AB371E2E92
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@
<!-- EXTRACT / DESCRIPTION of each page -->
<xsl:variable name="metadesc">
<!-- Get the meta element description -->
<xsl:value-of select="/buildinfo/document/head/meta[@name = 'description']/@content" />
<!-- Get the description element -->
<xsl:value-of select="/buildinfo/document/description" />
</xsl:variable>
<!-- if there is a meta description, take that as an extract -->
<!-- if there is a description, take that as an extract -->
<xsl:variable name="extract">
<xsl:choose>
<!-- case 1: if there is a meta description, take that -->
<!-- case 1: if there is a description, take that -->
<xsl:when test="$metadesc != ''">
<xsl:value-of select="$metadesc" />
</xsl:when>