aboutsummaryrefslogtreecommitdiffstats
path: root/lib/docbook/docbook-xsl/template/biblioentry.xsl
blob: 955d407950dc56b786de819880066afb05dc8b0c (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!-- THIS IS BROKEN -->
<!-- ==================================================================== -->

<xsl:template match="t:biblioentry">
  <xsl:text>&#xA;&#xA;</xsl:text>
  <xsl:element name="xsl:template">
    <xsl:attribute name="match">biblioentry</xsl:attribute>
    <xsl:text>&#xA;</xsl:text>
    <xsl:element name="xsl:variable">
      <xsl:attribute name="name">id</xsl:attribute>
      <xsl:element name="xsl:call-template">
        <xsl:attribute name="name">object.id</xsl:attribute>
      </xsl:element>
    </xsl:element>
    <xsl:text>&#xA;</xsl:text>
    <xsl:element name="{@wrapper}">
      <xsl:attribute name="id">{$id}</xsl:attribute>
      <xsl:attribute name="class">{name(.)}</xsl:attribute>
      <xsl:text>&#xA;  </xsl:text>
      <xsl:element name="a">
        <xsl:attribute name="name">{$id}</xsl:attribute>
      </xsl:element>
      <xsl:apply-templates mode="biblioentry"/>
      <xsl:text>&#xA;</xsl:text>
    </xsl:element>
    <xsl:text>&#xA;</xsl:text>
  </xsl:element>

<!--
  <xsl:text>&#xA;&#xA;</xsl:text>
  <xsl:element name="xsl:template">
    <xsl:attribute name="match">biblioentry/biblioset</xsl:attribute>
    <xsl:apply-templates mode="biblioentry"/>
  </xsl:element>
-->
</xsl:template>

<xsl:template match="t:if" mode="biblioentry">
  <xsl:element name="xsl:if">
    <xsl:attribute name="test">
      <xsl:value-of select="@test"/>
    </xsl:attribute>
    <xsl:apply-templates mode="biblioentry"/>
  </xsl:element>
</xsl:template>

<xsl:template match="t:text" mode="biblioentry">
  <xsl:element name="xsl:text">
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="*" mode="biblioentry">
  <xsl:text>&#xA;  </xsl:text>
  <xsl:element name="xsl:apply-templates">
    <xsl:attribute name="select">
      <xsl:value-of select="name(.)"/>
    </xsl:attribute>
    <xsl:attribute name="mode">bibliography.mode</xsl:attribute>
  </xsl:element>
</xsl:template>

<xsl:template match="t:or" mode="biblioentry">
  <xsl:text>&#xA;  </xsl:text>
  <xsl:element name="xsl:apply-templates">
    <xsl:attribute name="select">
      <xsl:call-template name="element-or-list"/>
    </xsl:attribute>
    <xsl:attribute name="mode">bibliography.mode</xsl:attribute>
  </xsl:element>
</xsl:template>