Misc tweaks to the template.
This commit is contained in:
commit
c0e74cc07b
@ -152,7 +152,7 @@
|
||||
<xsl:if test="atom:source/atom:icon">
|
||||
<img src="{atom:source/atom:icon}" class="icon"/>
|
||||
</xsl:if>
|
||||
<a href="{atom:source/atom:link['alternate']/@href}" class="icon">
|
||||
<a href="{atom:source/atom:link[@rel='alternate']/@href}">
|
||||
<xsl:attribute name="title" select="{atom:source/atom:title}"/>
|
||||
<xsl:value-of select="atom:source/planet:name"/>
|
||||
</a>
|
||||
@ -228,6 +228,11 @@
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Remove stray atom elements -->
|
||||
<xsl:template match="atom:*">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Feedburner detritus -->
|
||||
<xsl:template match="xhtml:div[@class='feedflare']"/>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
xmlns:planet="http://planet.intertwingly.net/"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
exclude-result-prefixes="atom planet">
|
||||
exclude-result-prefixes="atom planet xhtml">
|
||||
|
||||
<xsl:output method="xml" doctype-system="http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"/>
|
||||
|
||||
@ -150,7 +150,7 @@
|
||||
<!-- entry title -->
|
||||
<xsl:text> </xsl:text>
|
||||
<h3>
|
||||
<a href="{atom:source/atom:link[@rel='alternate']/@href}" class="icon">
|
||||
<a href="{atom:source/atom:link[@rel='alternate']/@href}">
|
||||
<xsl:attribute name="title" select="{atom:source/atom:title}"/>
|
||||
<xsl:value-of select="atom:source/planet:name"/>
|
||||
</a>
|
||||
@ -158,7 +158,7 @@
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="atom:source/atom:icon">
|
||||
<img src="{atom:source/atom:icon}" class="icon"/>
|
||||
<img src="{atom:source/atom:icon}" class="icon" alt="" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>—</xsl:text>
|
||||
@ -226,7 +226,7 @@
|
||||
|
||||
<!-- plain text content -->
|
||||
<xsl:template match="atom:content/text() | atom:summary/text()">
|
||||
<div class="content" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<div>
|
||||
<xsl:if test="../@xml:lang and not(../@xml:lang = ../../@xml:lang)">
|
||||
<xsl:attribute name="xml:lang">
|
||||
<xsl:value-of select="../@xml:lang"/>
|
||||
|
Loading…
Reference in New Issue
Block a user