source: common/hostreqs.xsl@ cb29c9c

2.4 ablfs-more legacy new_features trunk
Last change on this file since cb29c9c was 1cf621b, checked in by Pierre Labastie <pierre@…>, 12 years ago

Take minimal versions from the book host requirements, instead
of hard coding them

  • Property mode set to 100644
File size: 1.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<!-- $Id:$ -->
4<!-- Extracts minimal versions from LFS book host requirements,
5 and generates a script containing statements of the
6 form MIN_prog_VERSION=xx.yy.zz.
7-->
8
9<xsl:stylesheet
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 version="1.0">
12
13 <xsl:output method="text"/>
14
15 <xsl:template match="/sect1">
16 <xsl:apply-templates select=".//listitem//emphasis"/>
17 </xsl:template>
18
19 <xsl:template match="emphasis">
20 <xsl:text>local MIN_</xsl:text>
21 <xsl:choose>
22 <xsl:when test="contains(string(),' ')">
23 <xsl:value-of select=
24 "substring-before(substring-after(normalize-space(string()),
25 ' '),
26 '-')"/>
27 </xsl:when>
28 <xsl:otherwise>
29 <xsl:value-of select="substring-before(string(),'-')"/>
30 </xsl:otherwise>
31 </xsl:choose>
32 <xsl:text>_VER=</xsl:text>
33 <xsl:value-of select="substring-after(string(),'-')"/>
34 <xsl:text>
35</xsl:text>
36 </xsl:template>
37</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.