Suppress extraneous namespace declarations in output file

strip <link rel="service.feed" /> elements
This commit is contained in:
Jacques Distler 2006-09-08 02:18:21 -05:00
parent e029e9354e
commit 6428cfd56d

View File

@ -2,7 +2,9 @@
xmlns:atom="http://www.w3.org/2005/Atom" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:indexing="urn:atom-extension:indexing" xmlns:indexing="urn:atom-extension:indexing"
xmlns:planet="http://planet.intertwingly.net/" xmlns:planet="http://planet.intertwingly.net/"
xmlns="http://www.w3.org/1999/xhtml"> xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="planet xhtml">
<!-- strip planet elements and attributes --> <!-- strip planet elements and attributes -->
<xsl:template match="planet:*|@planet:*"/> <xsl:template match="planet:*|@planet:*"/>
@ -10,6 +12,10 @@
<!-- strip obsolete link relationships --> <!-- strip obsolete link relationships -->
<xsl:template match="atom:link[@rel='service.edit']"/> <xsl:template match="atom:link[@rel='service.edit']"/>
<xsl:template match="atom:link[@rel='service.post']"/> <xsl:template match="atom:link[@rel='service.post']"/>
<xsl:template match="atom:link[@rel='service.feed']"/>
<!-- Feedburner detritus -->
<xsl:template match="xhtml:div[@class='feedflare']"/>
<!-- add Google/LiveJournal-esque noindex directive --> <!-- add Google/LiveJournal-esque noindex directive -->
<xsl:template match="atom:feed"> <xsl:template match="atom:feed">