experimental
Last change
on this file since 1b99a8b was 7e43a37, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Fixed how dependencies are srted in *.dep files.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1d2f9d4] | 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">
|
---|
[7e43a37] | 22 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
[1d2f9d4] | 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">
|
---|
[7e43a37] | 29 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
[1d2f9d4] | 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">
|
---|
[7e43a37] | 37 | <xsl:sort select="position()" data-type="number" order="descending"/>
|
---|
[1d2f9d4] | 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.