2.3
2.4
ablfs
ablfs-more
legacy
new_features
trunk
Last change
on this file since 2c04c28 was 3c10176, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago |
Added new BLFS files from the experimental branch.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[3c10176] | 1 | <?xml version="1.0"?>
|
---|
| 2 |
|
---|
| 3 | <!-- $Id$ -->
|
---|
| 4 |
|
---|
| 5 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 6 | version="1.0">
|
---|
| 7 |
|
---|
| 8 | <xsl:output method="text"/>
|
---|
| 9 |
|
---|
| 10 | <xsl:param name="dependencies" select="2"/>
|
---|
| 11 |
|
---|
| 12 | <xsl:template match="/">
|
---|
| 13 | <xsl:apply-templates select="//para[@role='optional']"/>
|
---|
| 14 | <xsl:apply-templates select="//para[@role='recommended']"/>
|
---|
| 15 | <xsl:apply-templates select="//para[@role='required']"/>
|
---|
| 16 | </xsl:template>
|
---|
| 17 |
|
---|
| 18 | <xsl:template match="//text()"/>
|
---|
| 19 |
|
---|
| 20 | <xsl:template match="para[@role='required']">
|
---|
| 21 | <xsl:apply-templates select="xref">
|
---|
| 22 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
| 23 | </xsl:apply-templates>
|
---|
| 24 | </xsl:template>
|
---|
| 25 |
|
---|
| 26 | <xsl:template match="para[@role='recommended']">
|
---|
| 27 | <xsl:if test="$dependencies != '1'">
|
---|
| 28 | <xsl:apply-templates select="xref">
|
---|
| 29 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
| 30 | </xsl:apply-templates>
|
---|
| 31 | </xsl:if>
|
---|
| 32 | </xsl:template>
|
---|
| 33 |
|
---|
| 34 | <xsl:template match="para[@role='optional']">
|
---|
| 35 | <xsl:if test="$dependencies = '3'">
|
---|
| 36 | <xsl:apply-templates select="xref">
|
---|
| 37 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
| 38 | </xsl:apply-templates>
|
---|
| 39 | </xsl:if>
|
---|
| 40 | </xsl:template>
|
---|
| 41 |
|
---|
| 42 | <xsl:template match="xref">
|
---|
| 43 | <xsl:value-of select="@linkend"/>
|
---|
| 44 | <xsl:text>
</xsl:text>
|
---|
| 45 | </xsl:template>
|
---|
| 46 |
|
---|
| 47 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.