File: VERSION.xml

package info (click to toggle)
docbook-defguide 2.0.17%2Bsvn9047-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 93,428 kB
  • sloc: xml: 396,442; perl: 4,471; python: 879; makefile: 150; sh: 66
file content (191 lines) | stat: -rw-r--r-- 6,603 bytes parent folder | download | duplicates (4)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<?xml version='1.0' encoding='utf-8'?> <!-- -*- nxml -*- -->

<!-- This file should be changed EVERY TIME a new draft is published! -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
		xmlns:sf="http://sourceforge.net/"
		exclude-result-prefixes="fm sf"
                version='1.0'>

<xsl:output method="xml" encoding="utf-8"/>

<xsl:param name="freshmeat" select="0"/>

<xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
<xsl:strip-space elements="fm:*"/>

<fm:project>
  <fm:Project>DocBook</fm:Project>
  <fm:Branch>The Definitive Guide</fm:Branch>
  <fm:Version>2.0.17</fm:Version>
  <fm:Release-Focus>
  <!-- Initial freshmeat announcement -->
  Documentation
  <!-- Code cleanup -->
  <!-- Minor feature enhancements -->
  <!-- Major feature enhancements -->
  <!-- Minor bugfixes -->
  <!-- Major bugfixes -->
  <!-- Minor security fixes -->
  <!-- Major security fixes -->
  </fm:Release-Focus>
  <fm:Home-Page-URL>http://docbook.org/tdg/en/</fm:Home-Page-URL>
  <fm:Zipped-Tar-URL>http://docbook.org/tdg/en/tdg-en-html-{VERSION}.zip</fm:Zipped-Tar-URL>
  <fm:Changelog-URL>http://docbook.org/tdg/en/html/appi.html</fm:Changelog-URL>
  <fm:CVS-URL>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/docbook/defguide/</fm:CVS-URL>
  <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook/</fm:Mailing-List-URL>
  <fm:Changes>Updated license terms.</fm:Changes>
</fm:project>

<xsl:template name="bookinfo">
  <bookinfo>
    <mediaobject role="online">
      <imageobject>
	<imagedata fileref="figures/cover.png" align="left"/>
      </imageobject>
    </mediaobject>
    <title>DocBook</title>
    <subtitle>The Definitive Guide</subtitle>
    <authorgroup>
      <author><firstname>Norman</firstname><surname>Walsh</surname></author>
      <author><firstname>Leonard</firstname><surname>Muellner</surname></author>
      <othercredit><firstname>Bob</firstname><surname>Stayton</surname></othercredit>
    </authorgroup>
    <editor><firstname>Frank</firstname><surname>Willison</surname></editor>
    <editor role="production"><firstname>David</firstname><surname>Futato</surname></editor>
    <publisher>
      <publishername>O'Reilly Media, Inc.</publishername>
      <address><city>Beijing</city></address>
      <address><city>Cambridge</city></address>
      <address><city>Farnham</city></address>
      <address><city>Köln</city></address>
      <address><city>Paris</city></address>
      <address><city>Sebastopol</city></address>
      <address><city>Taipei</city></address>
      <address><city>Tokyo</city></address>
    </publisher>
    <printhistory>
      <para>October 1999: First Edition.</para>
    </printhistory>
    <isbn>156592-580-7</isbn>
    <releaseinfo>
      <xsl:value-of select="$VERSION"/>
    </releaseinfo>
    <pubdate>$Date$</pubdate>

    <legalnotice>
      <para condition="online">
	<citetitle>DocBook: The Definitive Guide</citetitle> Copyright
© 2004-2006 Norman Walsh. Portions Copyright © 1999-2003
O'Reilly Media, Inc.</para>

<para>Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.1 or any later version published by the Free Software
Foundation.
A copy of the license is included in <xref linkend="gfdl"/>.</para>

<para>Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly
logo are registered trademarks of O'Reilly Media, Inc. The
association between the image of a duck and the topic of DocBook is a
trademark of O'Reilly Media, Inc. Java and all Java-based
trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc., in the United States and other countries. O'Reilly
Media, Inc. is independent of Sun Microsystems.
</para>

<para>Many of the designations used by manufacturers and sellers to
distinguish their products are claimed as trademarks. Where those
designations appear in this book, and O'Reilly Media, Inc.
was aware of a trademark claim, the designations have been printed in
caps or initial caps. While every precaution has been taken in the
preparation of this book, the publisher assumes no responsibility for
errors or omissions, or for damages resulting from the use of the
information contained herein.
</para>
</legalnotice>

<copyright>
<year>1999</year>
<year>2000</year>
<year>2001</year>
<year>2002</year>
<year>2003</year>
<holder>O'Reilly Media, Inc. All rights reserved.</holder>
</copyright>
<copyright>
<year>2004</year>
<year>2005</year>
<year>2006</year>
<holder>Norman Walsh.</holder>
</copyright>
</bookinfo>
</xsl:template>

<xsl:template match="/">
  <xsl:choose>
    <xsl:when test="$freshmeat != 0">
      <xsl:apply-templates select="//fm:project"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="bookinfo"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="fm:project">
  <xsl:text>&#10;</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>&#10;</xsl:text>
  <xsl:apply-templates select="fm:Changes" mode="text"/>
  <xsl:text>&#10;</xsl:text>
</xsl:template>

<xsl:template match="fm:Changes"/>

<xsl:template match="fm:*">
  <xsl:value-of select="local-name(.)"/>
  <xsl:text>: </xsl:text>

  <xsl:call-template name="value">
    <xsl:with-param name="text" select="normalize-space(.)"/>
  </xsl:call-template>
  <xsl:text>&#10;</xsl:text>
</xsl:template>

<xsl:template name="value">
  <xsl:param name="text"/>

  <xsl:call-template name="string.subst">
    <xsl:with-param name="string" select="$text"/>
    <xsl:with-param name="target" select="'{VERSION}'"/>
    <xsl:with-param name="replacement" select="$VERSION"/>
  </xsl:call-template>
</xsl:template>

<xsl:template name="string.subst">
  <xsl:param name="string"/>
  <xsl:param name="target"/>
  <xsl:param name="replacement"/>

  <xsl:choose>
    <xsl:when test="contains($string, $target)">
      <xsl:variable name="rest">
        <xsl:call-template name="string.subst">
          <xsl:with-param name="string" select="substring-after($string, $target)"/>
          <xsl:with-param name="target" select="$target"/>
          <xsl:with-param name="replacement" select="$replacement"/>
        </xsl:call-template>
      </xsl:variable>
      <xsl:value-of select="concat(substring-before($string, $target),
                                   $replacement,
                                   $rest)"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="$string"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

</xsl:stylesheet>