Changeset 7072e1f for common/packages.xsl
- Timestamp:
- 02/01/2012 11:29:37 PM (12 years ago)
- Branches:
- 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 2c9a16b
- Parents:
- f5dc6d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/packages.xsl
rf5dc6d7 r7072e1f 14 14 <xsl:param name="kernel" select="2.6"/> 15 15 16 <!-- Should we include a package manager --> 17 <xsl:param name="pkgmngt" select="n"/> 18 16 19 <xsl:template match="/"> 17 20 <xsl:apply-templates select="//para"/> 21 <xsl:if test="$pkgmngt='y'"> 22 <xsl:apply-templates 23 select="document('packageManager.xml')//sect1[@id='package']//para"/> 24 </xsl:if> 18 25 </xsl:template> 19 26 … … 27 34 <xsl:with-param name="url" select="ulink/@url"/> 28 35 </xsl:call-template> 29 <xsl:text>
</xsl:text>30 36 </xsl:if> 31 37 </xsl:template> … … 33 39 <xsl:template name="package_name"> 34 40 <xsl:param name="url" select="foo"/> 35 <xsl: paramname="sub-url" select="substring-after($url,'/')"/>41 <xsl:variable name="sub-url" select="substring-after($url,'/')"/> 36 42 <xsl:choose> 37 43 <xsl:when test="contains($sub-url,'/')"> … … 45 51 <xsl:when test="contains($sub-url,'?')"> 46 52 <xsl:value-of select="substring-before($sub-url,'?')"/> 53 <xsl:text>
</xsl:text> 47 54 </xsl:when> 48 55 <xsl:otherwise> 49 56 <xsl:value-of select="$sub-url"/> 57 <xsl:text>
</xsl:text> 50 58 </xsl:otherwise> 51 59 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.