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 -->
|
<!-- only retain titles that don't duplicate summary or content -->
|
||||||
<xsl:template match="atom:title">
|
<xsl:template match="atom:title">
|
||||||
<xsl:if test="string-length(.) < 30 or
|
<xsl:copy>
|
||||||
( substring(.,1,string-length(.)-3) !=
|
<xsl:if test="string-length(.) < 30 or
|
||||||
substring(../atom:content,1,string-length(.)-3) and
|
( substring(.,1,string-length(.)-3) !=
|
||||||
substring(.,1,string-length(.)-3) !=
|
substring(../atom:content,1,string-length(.)-3) and
|
||||||
substring(../atom:summary,1,string-length(.)-3) )">
|
substring(.,1,string-length(.)-3) !=
|
||||||
<xsl:copy>
|
substring(../atom:summary,1,string-length(.)-3) )">
|
||||||
<xsl:apply-templates select="@*|node()"/>
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
</xsl:copy>
|
</xsl:if>
|
||||||
</xsl:if>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- pass through everything else -->
|
<!-- pass through everything else -->
|
||||||
|
Loading…
Reference in New Issue
Block a user