Skip to content

Commit 73d3a7c

Browse files
committed
cont
1 parent 9fb34e5 commit 73d3a7c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

stylesheets/rss/atom2html.xsl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version='1.0' encoding="ISO-8859-1"?>
22
<xsl:stylesheet
33
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
4+
xmlns:xhtml='http://www.w3.org/1999/xhtml'
45
xmlns:media="http://search.yahoo.com/mrss/"
56
xmlns:atom="http://www.w3.org/2005/Atom"
67
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
7-
exclude-result-prefixes="creativeCommons atom media"
8+
exclude-result-prefixes="creativeCommons atom media xhtml"
89
version='1.1'
910
>
1011
<xsl:output method="xml" indent="yes"/>
@@ -48,13 +49,20 @@
4849
<xsl:when test="atom:content/@type='html'">
4950
<xsl:value-of select="atom:content" disable-output-escaping="yes"/>
5051
</xsl:when>
52+
<xsl:when test="atom:content/@type='xhtml'">
53+
<xsl:apply-templates select="*" mode="cp"/>
54+
</xsl:when>
5155
<xsl:choose>
5256
<xsl:value-of select="atom:content"/>
5357
</xsl:choose>
5458
</xsl:choose>
5559
</dd>
5660
</xsl:template>
5761

58-
62+
<xsl:template match="@*|node()" mode="cp">
63+
<xsl:copy>
64+
<xsl:apply-templates select="@*|node()" mode="cp"/>
65+
</xsl:copy>
66+
</xsl:template>
5967

6068
</xsl:stylesheet>

0 commit comments

Comments
 (0)