File: moin2pkgsize.xsl

package info (click to toggle)
debian-reference 2.24
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,088 kB
  • ctags: 35
  • sloc: xml: 70,510; sh: 616; makefile: 352; perl: 221; sed: 3
file content (43 lines) | stat: -rw-r--r-- 976 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8" ?>
<!--
Extract package name for &pkgsize-***;
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="text" indent="no"/>

<xsl:strip-space elements="*"/>

<xsl:template match="tbody">
    <xsl:apply-templates select="row[position() > 2]"/>
</xsl:template>

<xsl:template match="caption">
</xsl:template>

<xsl:template match="inlinemediaobject">
</xsl:template>

<xsl:template match="title">
</xsl:template>

<xsl:template match="screen">
</xsl:template>

<xsl:template match="para">
</xsl:template>

<xsl:template match="entry">
</xsl:template>

<xsl:template match="entry[position() = ../../row[1]/entry[4]/para[1]]">
    <xsl:value-of select="normalize-space(../entry[position() = ../../row[1]/entry[2]/para[1]])"/>
    <xsl:value-of select="'&#10;'"/>
</xsl:template>

<xsl:template match="@*|node()">
    <xsl:apply-templates select="@*|node()"/>
</xsl:template>

</xsl:stylesheet>