|
@@ -6,6 +6,10 @@
|
|
|
|
|
|
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
|
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
|
|
|
|
|
|
|
+ <xsl:variable name="newline">
|
|
|
|
+ <xsl:text>
</xsl:text>
|
|
|
|
+ </xsl:variable>
|
|
|
|
+
|
|
<xsl:template match="/">
|
|
<xsl:template match="/">
|
|
<xsl:apply-templates select="//sect1"/>
|
|
<xsl:apply-templates select="//sect1"/>
|
|
</xsl:template>
|
|
</xsl:template>
|
|
@@ -47,31 +51,31 @@
|
|
<xsl:if test="child::* = userinput">
|
|
<xsl:if test="child::* = userinput">
|
|
<xsl:choose>
|
|
<xsl:choose>
|
|
<xsl:when test="@role = 'root'">
|
|
<xsl:when test="@role = 'root'">
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
<xsl:text># Run this as root</xsl:text>
|
|
<xsl:text># Run this as root</xsl:text>
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
<xsl:apply-templates select="userinput"/>
|
|
<xsl:apply-templates select="userinput"/>
|
|
<xsl:text># End root commands</xsl:text>
|
|
<xsl:text># End root commands</xsl:text>
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
</xsl:when>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="userinput"/>
|
|
<xsl:apply-templates select="userinput"/>
|
|
</xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:choose>
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="userinput">
|
|
<xsl:template match="userinput">
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
<xsl:if test=".//replaceable">
|
|
<xsl:if test=".//replaceable">
|
|
<xsl:text># This block must be edited to suit your needs.</xsl:text>
|
|
<xsl:text># This block must be edited to suit your needs.</xsl:text>
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
<xsl:apply-templates/>
|
|
<xsl:apply-templates/>
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
<xsl:if test=".//replaceable">
|
|
<xsl:if test=".//replaceable">
|
|
<xsl:text># End of editable block.</xsl:text>
|
|
<xsl:text># End of editable block.</xsl:text>
|
|
|
|
+ <xsl:value-of select="$newline"/>
|
|
</xsl:if>
|
|
</xsl:if>
|
|
- <xsl:text>
</xsl:text>
|
|
|
|
</xsl:template>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="replaceable">
|
|
<xsl:template match="replaceable">
|