- Timestamp:
- 11/01/2023 10:34:23 PM (11 months ago)
- Branches:
- ablfs-more, trunk
- Children:
- 0f7a988
- Parents:
- 280cff6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/make_book.xsl
r280cff6a rf6420b0 65 65 The difficulty is that some of those names *are* id's, 66 66 because they are referenced in the index. 67 Hopefully, none of those id's are sect{1,2}...--> 67 Hopefully, none of those id's are sect{1,2}... 68 We also need a special template for plasma-post-install, 69 because this one is not an id at all!--> 68 70 <xsl:template name="apply-list"> 69 71 <xsl:param name="list" select="''"/> … … 115 117 </xsl:if> 116 118 </xsl:when> 119 <xsl:when test="$list='plasma-post-install'"> 120 <xsl:apply-templates 121 select="//sect1[@id='plasma5-build']" 122 mode="plasma-post-install"/> 123 </xsl:when> 117 124 <xsl:when test="not(id($list)[self::sect1 or self::sect2])"> 118 125 <!-- This is a sub-package: parse the corresponding compound … … 124 131 and .//userinput/literal[contains(string(), 125 132 concat($list,'-'))]]" 126 133 mode="compound"> 127 134 <xsl:with-param name="package" select="$list"/> 128 135 </xsl:apply-templates> … … 753 760 </xsl:choose> 754 761 </xsl:template> 762 763 <xsl:template match="sect1" mode="plasma-post-install"> 764 <xsl:variable name="package" select="'plasma-post-install'"/> 765 <xsl:element name="sect1"> 766 <xsl:attribute name="id"> 767 <xsl:value-of select="$package"/> 768 </xsl:attribute> 769 <xsl:processing-instruction name="dbhtml"> 770 filename="<xsl:value-of select='$package'/>.html" 771 </xsl:processing-instruction> 772 <title><xsl:value-of select="$package"/></title> 773 <sect2 role="installation"> 774 <title>Installation of <xsl:value-of select="$package"/></title> 775 776 <para> 777 Install <application><xsl:value-of select="$package"/></application> 778 by running the following commands: 779 </para> 780 <screen role="root"> 781 <userinput> 782 <xsl:call-template name="plasma-sessions"> 783 <xsl:with-param 784 name="p-sessions-text" 785 select="string(.//userinput[contains(text(),'xsessions')])"/> 786 </xsl:call-template> 787 </userinput> 788 </screen> 789 <xsl:copy-of select=".//screen[@role='root']"/> 790 </sect2> 791 </xsl:element><!-- sect1 --> 792 </xsl:template> 793 794 <xsl:template name="plasma-sessions"> 795 <xsl:param name="p-sessions-text"/> 796 <xsl:choose> 797 <xsl:when test="string-length($p-sessions-text)=0"/> 798 <xsl:when test="contains($p-sessions-text,'as_root')"> 799 <xsl:call-template name="plasma-sessions"> 800 <xsl:with-param 801 name="p-sessions-text" 802 select="substring-before($p-sessions-text,'as_root')"/> 803 </xsl:call-template> 804 <xsl:call-template name="plasma-sessions"> 805 <xsl:with-param 806 name="p-sessions-text" 807 select="substring-after($p-sessions-text,'as_root ')"/> 808 </xsl:call-template> 809 </xsl:when> 810 <xsl:otherwise> 811 <xsl:copy-of select="$p-sessions-text"/> 812 </xsl:otherwise> 813 </xsl:choose> 814 </xsl:template> 815 755 816 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.