Permalink
Browse files

Don't copy xml:base attributes.

  • Loading branch information...
1 parent 571eae1 commit 41228c6679879728f80dfd23a2be205b22d74828 @scottgonzalez scottgonzalez committed Aug 28, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 entries2html-base.xsl
View
3 entries2html-base.xsl
@@ -639,6 +639,9 @@ placeholder with @foo from the <entry> -->
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
+<!-- <xi:include> will add an xml:base attribute, so we strip it out -->
+<xsl:template match="//@xml:base"/>
+<!-- replace the <placeholder> with the associated attribute from the entry -->
<xsl:template match="//placeholder">
<xsl:variable name="name" select="@name"/>
<xsl:value-of select="ancestor::entry/@*[name()=$name]"/>

0 comments on commit 41228c6

Please sign in to comment.