Changeset 71eb6ac for stylesheets
- Timestamp:
- 07/25/2007 01:58:03 AM (17 years ago)
- Children:
- f88b3c5
- Parents:
- dde6e423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/dump-commands.xsl
rdde6e423 r71eb6ac 6 6 7 7 <!-- XSLT stylesheet to extract commands from [B,H]LFS books. --> 8 9 <xsl:variable name="newline"> 10 <xsl:text>
</xsl:text> 11 </xsl:variable> 8 12 9 13 <xsl:template match="/"> … … 48 52 <xsl:choose> 49 53 <xsl:when test="@role = 'root'"> 50 <xsl:text>
</xsl:text>51 54 <xsl:text># Run this as root</xsl:text> 55 <xsl:value-of select="$newline"/> 52 56 <xsl:apply-templates select="userinput"/> 53 57 <xsl:text># End root commands</xsl:text> 54 <xsl: text>
</xsl:text>58 <xsl:value-of select="$newline"/> 55 59 </xsl:when> 56 60 <xsl:otherwise> … … 58 62 </xsl:otherwise> 59 63 </xsl:choose> 64 <xsl:value-of select="$newline"/> 60 65 </xsl:if> 61 66 </xsl:template> 62 67 63 68 <xsl:template match="userinput"> 64 <xsl:text>
</xsl:text>65 69 <xsl:if test=".//replaceable"> 66 70 <xsl:text># This block must be edited to suit your needs.</xsl:text> 71 <xsl:value-of select="$newline"/> 67 72 </xsl:if> 68 <xsl:text>
</xsl:text>69 73 <xsl:apply-templates/> 70 <xsl: text>
</xsl:text>74 <xsl:value-of select="$newline"/> 71 75 <xsl:if test=".//replaceable"> 72 76 <xsl:text># End of editable block.</xsl:text> 77 <xsl:value-of select="$newline"/> 73 78 </xsl:if> 74 <xsl:text>
</xsl:text>75 79 </xsl:template> 76 80
Note:
See TracChangeset
for help on using the changeset viewer.