diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index cb0cc70..eb04609 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -722,9 +722,13 @@ cd $BOOTUNPACKDIR + the end-root has not been called, except if the preceding "screen" + tag is itself preceded by a containing and to + bootscripts. So close it only if needed --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root' and + not(preceding-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='bootscripts'])"> @@ -733,17 +737,21 @@ cd $BOOTUNPACKDIR select="id('bootscripts')//itemizedlist//ulink/@url"/> + the begin-root will not be called. So do it.--> + test="preceding-sibling::screen[1][@role='root'] and + @role='root'"> + the end-root has not been called. So do it, except if it was already a + unit install --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root' and + not(preceding-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='systemd-units'])"> @@ -752,9 +760,10 @@ cd $BOOTUNPACKDIR select="id('systemd-units')//itemizedlist//ulink/@url"/> + the begin-root will not be called. So do it. --> + test="preceding-sibling::screen[1][@role='root'] and + @role='root'"> @@ -762,7 +771,7 @@ cd $BOOTUNPACKDIR + the end-root has not been called. --> @@ -770,9 +779,12 @@ cd $BOOTUNPACKDIR popd + the begin-root will not be called. So do it, except if the next + is itself a unit or bootscript install --> + test="following-sibling::screen[1][@role='root'] and + @role='root' and + not(following-sibling::screen[1]/preceding-sibling::para[1]/xref[@linkend='bootscripts' or @linkend='systemd-units'])">