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

View File

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