File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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 -->
You can’t perform that action at this time.
0 commit comments