Changeset 63b2859 for dump-commands.xsl


Ignore:
Timestamp:
09/26/2005 10:36:40 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
c4cf6de
Parents:
409488e
Message:

Starting the move of some features to the XSL code.
First try to manage chapter05.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dump-commands.xsl

    r409488e r63b2859  
    55    version="1.0">
    66
    7 <!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
     7<!-- XSLT stylesheet to create shell scripts from LFS books. -->
    88
    99  <xsl:template match="/">
     
    4040      <!-- Creating dirs and files -->
    4141    <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
     42      <xsl:text>#!/bin/sh&#xA;&#xA;</xsl:text>
    4243      <xsl:apply-templates select=".//screen"/>
    4344    </exsl:document>
     
    4849      <xsl:choose>
    4950        <xsl:when test="@role = 'nodump'"/>
    50         <xsl:when test="@role = 'root'">
    51           <xsl:text>&#xA;</xsl:text>
    52           <xsl:text># Run this as root</xsl:text>
    53           <xsl:apply-templates select="userinput"/>
    54           <xsl:text># End root commands</xsl:text>
    55           <xsl:text>&#xA;</xsl:text>
    56         </xsl:when>
    5751        <xsl:otherwise>
    5852          <xsl:apply-templates select="userinput"/>
     
    6357
    6458  <xsl:template match="userinput">
    65     <xsl:text>&#xA;</xsl:text>
    66     <xsl:if test=".//replaceable">
    67       <xsl:text># This block must be edited to suit your needs.</xsl:text>
    68     </xsl:if>
    69     <xsl:text>&#xA;</xsl:text>
    7059    <xsl:apply-templates/>
    71     <xsl:text>&#xA;</xsl:text>
    72     <xsl:if test=".//replaceable">
    73       <xsl:text># End of editable block.</xsl:text>
    74     </xsl:if>
    75     <xsl:text>&#xA;</xsl:text>
     60    <xsl:text> &amp;&amp;&#xA;</xsl:text>
    7661  </xsl:template>
    7762
Note: See TracChangeset for help on using the changeset viewer.