Skip to content

Commit 58eaee9

Browse files
quick-dirty prunes deprecation checks when building subtree
1 parent 2351139 commit 58eaee9

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

xsl/pretext-html.xsl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,19 @@ along with MathBook XML. If not, see <http://www.gnu.org/licenses/>.
268268
</xsl:call-template>
269269
</xsl:if>
270270
<!-- -->
271-
<xsl:apply-templates select="$original" mode="generic-warnings"/>
272-
<xsl:apply-templates select="$original" mode="element-deprecation-warnings"/>
273-
<xsl:apply-templates select="$original" mode="parameter-deprecation-warnings"/>
271+
<xsl:choose>
272+
<!-- if working on a subtree, only warn on that part -->
273+
<xsl:when test="$b-quick-dirty and $b-subsetting">
274+
<xsl:apply-templates select="$pruning-tree" mode="generic-warnings"/>
275+
<xsl:apply-templates select="$pruning-tree" mode="element-deprecation-warnings"/>
276+
<xsl:apply-templates select="$pruning-tree" mode="parameter-deprecation-warnings"/>
277+
</xsl:when>
278+
<xsl:otherwise>
279+
<xsl:apply-templates select="$original" mode="generic-warnings"/>
280+
<xsl:apply-templates select="$original" mode="element-deprecation-warnings"/>
281+
<xsl:apply-templates select="$original" mode="parameter-deprecation-warnings"/>
282+
</xsl:otherwise>
283+
</xsl:choose>
274284
<!-- Usually no manifest is created -->
275285
<xsl:call-template name="runestone-manifest"/>
276286
<!-- A structured Table of Contents for a React app approach -->

0 commit comments

Comments
 (0)