Boostbook: Convert more for-each tags to copy-of.

[SVN r83016]
This commit is contained in:
Daniel James 2013-02-19 19:15:18 +00:00
parent da2a2a8614
commit a2f08d47e5
3 changed files with 5 additions and 19 deletions

View File

@ -422,11 +422,7 @@
<xsl:param name="highlight" select="false()"/>
<xsl:element name="{name(.)}">
<xsl:for-each select="./@*">
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:copy-of select="./@*"/>
<xsl:apply-templates select="./*|./text()" mode="annotation">
<xsl:with-param name="highlight" select="$highlight"/>
</xsl:apply-templates>

View File

@ -431,7 +431,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<xsl:template match="chapter">
<xsl:if test="$boost.include.libraries=''">
<chapter>
<xsl:copy-of select="@*" />
<xsl:copy-of select="./@*" />
<xsl:apply-templates/>
</chapter>
</xsl:if>
@ -485,11 +485,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
chapters within chpaters into sections. -->
<xsl:template match="part/part|part/article">
<chapter>
<xsl:for-each select="./@*">
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:copy-of select="./@*"/>
<xsl:apply-templates/>
</chapter>
</xsl:template>
@ -498,11 +494,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
</xsl:template>
<xsl:template match="part/part/chapter|part/part/appendix">
<section>
<xsl:for-each select="./@*">
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:copy-of select="./@*"/>
<xsl:apply-templates/>
</section>
</xsl:template>

View File

@ -542,9 +542,7 @@
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>