File: changes2document.xsl

package info (click to toggle)
libxalan2-java 2.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,468 kB
  • ctags: 26,006
  • sloc: java: 175,784; xml: 28,073; sh: 164; jsp: 43; makefile: 43; sql: 6
file content (43 lines) | stat: -rw-r--r-- 968 bytes parent folder | download | duplicates (16)
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"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="changes">
    <s1 title="{@title}">
      <xsl:apply-templates/>
    </s1>
  </xsl:template>

  <xsl:template match="release">
    <s2 title="Release {@version} {@date}">
      <br/><xsl:apply-templates/>
    </s2>
  </xsl:template>

  <xsl:template match="features">
    <s3 title="Features">
      <ul><xsl:apply-templates/></ul>
    </s3>
  </xsl:template>

  <xsl:template match="fixes">
    <s3 title="Bugs fixed">
      <ul><xsl:apply-templates/></ul>
    </s3>
  </xsl:template>

  <xsl:template match="feat|fix">
    <li><xsl:apply-templates/></li>
  </xsl:template>

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

</xsl:stylesheet>