When testing preceding/following-sibling for wrapping,

only use the first in the series
This commit is contained in:
Pierre Labastie 2016-08-26 14:42:07 +00:00
parent 24e2a6f2f8
commit c650f9bf2a

View file

@ -387,7 +387,7 @@ fi
<xsl:if test="child::* = userinput and not(@role = 'nodump')"> <xsl:if test="child::* = userinput and not(@role = 'nodump')">
<xsl:choose> <xsl:choose>
<xsl:when test="@role = 'root'"> <xsl:when test="@role = 'root'">
<xsl:if test="not(preceding-sibling::screen[@role='root'])"> <xsl:if test="not(preceding-sibling::screen[1][@role='root'])">
<xsl:if test="$sudo = 'y'"> <xsl:if test="$sudo = 'y'">
<xsl:text>sudo -E sh &lt;&lt; ROOT_EOF&#xA;</xsl:text> <xsl:text>sudo -E sh &lt;&lt; ROOT_EOF&#xA;</xsl:text>
</xsl:if> </xsl:if>
@ -403,7 +403,7 @@ wrapInstall '
</xsl:if> </xsl:if>
</xsl:if> </xsl:if>
<xsl:apply-templates mode="root"/> <xsl:apply-templates mode="root"/>
<xsl:if test="not(following-sibling::screen[@role='root'])"> <xsl:if test="not(following-sibling::screen[1][@role='root'])">
<xsl:if test="$wrap-install = 'y' and <xsl:if test="$wrap-install = 'y' and
ancestor::sect2[@role='installation']"> ancestor::sect2[@role='installation']">
<xsl:text>'&#xA;packInstall</xsl:text> <xsl:text>'&#xA;packInstall</xsl:text>