mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Boostbook: Convert more for-each tags to copy-of.
[SVN r83016]
This commit is contained in:
parent
da2a2a8614
commit
a2f08d47e5
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user