Even when ditching the content, preserve title element itself
This commit is contained in:
parent
d1c1bd2c23
commit
e58f5cd6a9
@ -4,15 +4,15 @@
|
||||
|
||||
<!-- only retain titles that don't duplicate summary or content -->
|
||||
<xsl:template match="atom:title">
|
||||
<xsl:copy>
|
||||
<xsl:if test="string-length(.) < 30 or
|
||||
( substring(.,1,string-length(.)-3) !=
|
||||
substring(../atom:content,1,string-length(.)-3) and
|
||||
substring(.,1,string-length(.)-3) !=
|
||||
substring(../atom:summary,1,string-length(.)-3) )">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:if>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<!-- pass through everything else -->
|
||||
|
Loading…
Reference in New Issue
Block a user