File: any2header.xsl

package info (click to toggle)
libxerces2-java 2.8.1-1%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 11,056 kB
  • ctags: 15,838
  • sloc: java: 117,816; xml: 12,454; sh: 37; makefile: 10
file content (40 lines) | stat: -rw-r--r-- 1,253 bytes parent folder | download | duplicates (5)
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
<?xml version="1.0"?>

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

  <xsl:param name="label"/>

  <xsl:template match='/'>
    <image width="456" height="35" bgcolor="0086b2">
      <text font="Arial" size="29" x="454" y="8" halign="right" valign="top" color="004080"
            text="{$label}"/>
      <text font="Arial" size="29" x="452" y="6" halign="right" valign="top" color="ffffff"
            text="{$label}"/>
    </image>
  </xsl:template>

<!--
  <xsl:template match="/">
    <image width="456" height="35" bgcolor="0086b2">
     <xsl:apply-templates/>
    </image>
  </xsl:template>

  <xsl:template match="s1|faqs|releases|features|properties">
      <xsl:variable name="title">
        <xsl:if test="string-length(@title)=0">
          <xsl:value-of select="$label"/>
        </xsl:if>
        <xsl:if test="string-length(@title)>0">
          <xsl:value-of select="@title"/>
        </xsl:if>
      </xsl:variable>

      <text font="Arial" size="29" x="454" y="8" halign="right" valign="top" color="004080"
            text="{$title}"/>
      <text font="Arial" size="29" x="452" y="6" halign="right" valign="top" color="ffffff"
            text="{$title}"/>
  </xsl:template>
-->

</xsl:stylesheet>