- Timestamp:
- 09/19/2023 08:11:11 PM (13 months ago)
- Branches:
- ablfs-more, trunk
- Children:
- e6a1ec3
- Parents:
- b39f283
- Location:
- BLFS/xsl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/gen_config.xsl
rb39f283 r0cd09c6 310 310 			default	</xsl:text> 311 311 <xsl:choose> 312 <xsl:when test="contains(../name,'xorg')"> 312 <xsl:when test="contains(../name,'xorg') or 313 contains(../name,'plasma') or 314 contains(../name,'kf5')"> 313 315 <xsl:text>y 314 316 -
BLFS/xsl/gen_pkg_list.xsl
rb39f283 r0cd09c6 360 360 <xsl:when test="@role='nodep'"/> 361 361 <!-- Call list expansion when we have an xorg7 series of packages --> 362 <xsl:when test="contains(@linkend,'xorg7-')"> 362 <xsl:when test="contains(@linkend,'xorg7-') or 363 @linkend='kf5-frameworks' or 364 @linkend='plasma5-build'"> 363 365 <xsl:call-template name="expand-deps"> 364 366 <xsl:with-param name="section"> -
BLFS/xsl/make_book.xsl
rb39f283 r0cd09c6 58 58 Normally, those items are id of nodes. 59 59 Those nodes can be sect1 (normal case), 60 sect2 (python modules or DBus bindings) 61 bridgehead (perl modules) 62 para (dependency of perl modules). 60 sect2 (python/perl modules/dependencies ) 63 61 The templates after this one treat each of those cases. 64 62 However, some items are xorg package names, and not id. … … 66 64 The difficulty is that some of those names *are* id's, 67 65 because they are referenced in the index. 68 Hopefully, none of those id's are sect{1,2} , bridgehead or para...-->66 Hopefully, none of those id's are sect{1,2}...--> 69 67 <xsl:template name="apply-list"> 70 68 <xsl:param name="list" select="''"/> … … 101 99 </xsl:when> 102 100 <xsl:when test="contains(concat($list,' '),'-pass1 ')"> 103 <!-- We need to do it only forsect1 and sect2, because of libva -->101 <!-- We need to do it for both sect1 and sect2, because of libva --> 104 102 <xsl:variable 105 103 name="real-id" … … 114 112 <xsl:when test="not(id($list)[self::sect1 or self::sect2 or self::para or self::bridgehead])"> 115 113 <xsl:apply-templates 116 select="//sect1[contains(@id,'xorg7') 117 and contains(string(.//userinput), 118 concat($list,'-'))]" 114 select="//sect1[(contains(@id,'xorg7') or 115 contains(@id,'frameworks') or 116 contains(@id,'plasma5')) 117 and .//userinput/literal[contains(string(), 118 concat($list,'-'))]]" 119 119 mode="xorg"> 120 120 <xsl:with-param name="package" select="$list"/> … … 498 498 <xsl:template match="sect1" mode="xorg"> 499 499 <xsl:param name="package"/> 500 <!--DEBUG 501 <xsl:message> 502 <xsl:text>Entering sect1 template in xorg mode: 503 - page id:</xsl:text> 504 <xsl:value-of select="@id"/> 505 <xsl:text> 506 - package:</xsl:text> 507 <xsl:value-of select="$package"/> 508 <xsl:text> 509 </xsl:text> 510 </xsl:message> END DEBUG --> 500 511 <xsl:variable name="tarball"> 501 512 <xsl:call-template name="tarball"> … … 522 533 <xsl:call-template name="inst-instr"> 523 534 <xsl:with-param name="inst-instr" 524 select=".//userinput[starts-with(string(),'for ')]"/> 535 select= 536 "substring-after( 537 substring-after(.//userinput[starts-with(string(),'for ') or 538 starts-with(string(),'while ')], 539 'pushd'), 540 '
')"/> 541 <xsl:with-param name="package" select="$package"/> 525 542 </xsl:call-template> 526 543 </xsl:variable> … … 541 558 select=".//para[contains(string(),'(HTTP)')]/ulink/@url"/> 542 559 <xsl:value-of select="$download-dir"/> 560 <xsl:if test="contains(@id,'frameworks') or 561 contains(@id,'plasma5')"> 562 <xsl:text>/</xsl:text> 563 </xsl:if> 543 564 <xsl:value-of select="$tarball"/> 544 565 </xsl:attribute> … … 547 568 </listitem> 548 569 <listitem> 549 <para>Download (FTP): <xsl:element name="ulink"> 550 <xsl:attribute name="url"> 551 <xsl:value-of 552 select=".//para[contains(string(),'(FTP)')]/ulink/@url"/> 553 <xsl:value-of select="$download-dir"/> 554 <xsl:value-of select="$tarball"/> 555 </xsl:attribute> 556 </xsl:element> 570 <para>Download (FTP): <ulink url=" "/> 557 571 </para> 558 572 </listitem> … … 582 596 <screen><userinput>packagedir=<xsl:value-of 583 597 select="substring-before($tarball,'.tar.')"/> 584 <xsl:text>
</xsl:text> 598 <xsl:text> 599 name=$(echo $pkg | sed 's/-[[:digit:]].*//') 600 </xsl:text> 585 601 <xsl:value-of select="substring-before($install-instructions, 586 602 'as_root')"/> … … 681 697 <xsl:template name="inst-instr"> 682 698 <xsl:param name="inst-instr"/> 683 <xsl:choose> 684 <xsl:when test="contains($inst-instr,'pushd')"> 685 <xsl:call-template name="inst-instr"> 686 <xsl:with-param name="inst-instr" 687 select="substring-after( 688 substring-after($inst-instr,'pushd'), 689 '
')"/> 690 </xsl:call-template> 699 <xsl:param name="package"/> 700 <xsl:choose> 701 <xsl:when test="contains(substring-after($inst-instr,'popd'),'popd')"> 702 <xsl:choose> 703 <xsl:when test="$package='kapidox'"> 704 <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'kapidox)')"/> 705 </xsl:when> 706 <xsl:otherwise> 707 <xsl:copy-of select="substring-before($inst-instr,'kapidox)')"/> 708 <xsl:call-template name="inst-instr"> 709 <xsl:with-param name="inst-instr" 710 select="substring-after($inst-instr,';;')"/> 711 </xsl:call-template> 712 </xsl:otherwise> 713 </xsl:choose> 691 714 </xsl:when> 692 715 <xsl:otherwise>
Note:
See TracChangeset
for help on using the changeset viewer.