File: extract-copyrights.xsl

package info (click to toggle)
google-android-installers 1743526702-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: xml: 9,711; sh: 1,753; makefile: 266
file content (25 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    >

<xsl:output method="text"/>
<xsl:strip-space elements="*"/>
<xsl:param name="license"/>

<!-- Change the built-in rule on text nodes to not output them -->
<xsl:template match="text()"/>

<xsl:template match="/">
    <xsl:apply-templates select="*/license[@id=$license]"/>
</xsl:template>

<!-- List "platforms" packages -->
<xsl:template match="license">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:template>

</xsl:stylesheet>