Debian Codegraph @

en/VERSION.xml

raw symbols SCIP
1 <?xml version='1.0' encoding='utf-8'?> <!-- -*- nxml -*- -->
2
3 <!-- This file should be changed EVERY TIME a new draft is published! -->
4
5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
7 xmlns:sf="http://sourceforge.net/"
8 exclude-result-prefixes="fm sf"
9 version='1.0'>
10
11 <xsl:output method="xml" encoding="utf-8"/>
12
13 <xsl:param name="freshmeat" select="0"/>
14
15 <xsl:param name="VERSION" select="string(document('')//fm:Version[1])"/>
16 <xsl:strip-space elements="fm:*"/>
17
18 <fm:project>
19 <fm:Project>DocBook</fm:Project>
20 <fm:Branch>The Definitive Guide</fm:Branch>
21 <fm:Version>2.0.17</fm:Version>
22 <fm:Release-Focus>
23 <!-- Initial freshmeat announcement -->
24 Documentation
25 <!-- Code cleanup -->
26 <!-- Minor feature enhancements -->
27 <!-- Major feature enhancements -->
28 <!-- Minor bugfixes -->
29 <!-- Major bugfixes -->
30 <!-- Minor security fixes -->
31 <!-- Major security fixes -->
32 </fm:Release-Focus>
33 <fm:Home-Page-URL>http://docbook.org/tdg/en/</fm:Home-Page-URL>
34 <fm:Zipped-Tar-URL>http://docbook.org/tdg/en/tdg-en-html-{VERSION}.zip</fm:Zipped-Tar-URL>
35 <fm:Changelog-URL>http://docbook.org/tdg/en/html/appi.html</fm:Changelog-URL>
36 <fm:CVS-URL>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/docbook/defguide/</fm:CVS-URL>
37 <fm:Mailing-List-URL>http://lists.oasis-open.org/archives/docbook/</fm:Mailing-List-URL>
38 <fm:Changes>Updated license terms.</fm:Changes>
39 </fm:project>
40
41 <xsl:template name="bookinfo">
42 <bookinfo>
43 <mediaobject role="online">
44 <imageobject>
45 <imagedata fileref="figures/cover.png" align="left"/>
46 </imageobject>
47 </mediaobject>
48 <title>DocBook</title>
49 <subtitle>The Definitive Guide</subtitle>
50 <authorgroup>
51 <author><firstname>Norman</firstname><surname>Walsh</surname></author>
52 <author><firstname>Leonard</firstname><surname>Muellner</surname></author>
53 <othercredit><firstname>Bob</firstname><surname>Stayton</surname></othercredit>
54 </authorgroup>
55 <editor><firstname>Frank</firstname><surname>Willison</surname></editor>
56 <editor role="production"><firstname>David</firstname><surname>Futato</surname></editor>
57 <publisher>
58 <publishername>O'Reilly Media, Inc.</publishername>
59 <address><city>Beijing</city></address>
60 <address><city>Cambridge</city></address>
61 <address><city>Farnham</city></address>
62 <address><city>Köln</city></address>
63 <address><city>Paris</city></address>
64 <address><city>Sebastopol</city></address>
65 <address><city>Taipei</city></address>
66 <address><city>Tokyo</city></address>
67 </publisher>
68 <printhistory>
69 <para>October 1999: First Edition.</para>
70 </printhistory>
71 <isbn>156592-580-7</isbn>
72 <releaseinfo>
73 <xsl:value-of select="$VERSION"/>
74 </releaseinfo>
75 <pubdate>$Date$</pubdate>
76
77 <legalnotice>
78 <para condition="online">
79 <citetitle>DocBook: The Definitive Guide</citetitle> Copyright
80 © 2004-2006 Norman Walsh. Portions Copyright © 1999-2003
81 O'Reilly Media, Inc.</para>
82
83 <para>Permission is granted to copy, distribute and/or modify this
84 document under the terms of the GNU Free Documentation License,
85 Version 1.1 or any later version published by the Free Software
86 Foundation.
87 A copy of the license is included in <xref linkend="gfdl"/>.</para>
88
89 <para>Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly
90 logo are registered trademarks of O'Reilly Media, Inc. The
91 association between the image of a duck and the topic of DocBook is a
92 trademark of O'Reilly Media, Inc. Java and all Java-based
93 trademarks and logos are trademarks or registered trademarks of Sun
94 Microsystems, Inc., in the United States and other countries. O'Reilly
95 Media, Inc. is independent of Sun Microsystems.
96 </para>
97
98 <para>Many of the designations used by manufacturers and sellers to
99 distinguish their products are claimed as trademarks. Where those
100 designations appear in this book, and O'Reilly Media, Inc.
101 was aware of a trademark claim, the designations have been printed in
102 caps or initial caps. While every precaution has been taken in the
103 preparation of this book, the publisher assumes no responsibility for
104 errors or omissions, or for damages resulting from the use of the
105 information contained herein.
106 </para>
107 </legalnotice>
108
109 <copyright>
110 <year>1999</year>
111 <year>2000</year>
112 <year>2001</year>
113 <year>2002</year>
114 <year>2003</year>
115 <holder>O'Reilly Media, Inc. All rights reserved.</holder>
116 </copyright>
117 <copyright>
118 <year>2004</year>
119 <year>2005</year>
120 <year>2006</year>
121 <holder>Norman Walsh.</holder>
122 </copyright>
123 </bookinfo>
124 </xsl:template>
125
126 <xsl:template match="/">
127 <xsl:choose>
128 <xsl:when test="$freshmeat != 0">
129 <xsl:apply-templates select="//fm:project"/>
130 </xsl:when>
131 <xsl:otherwise>
132 <xsl:call-template name="bookinfo"/>
133 </xsl:otherwise>
134 </xsl:choose>
135 </xsl:template>
136
137 <xsl:template match="fm:project">
138 <xsl:text>&#10;</xsl:text>
139 <xsl:apply-templates/>
140 <xsl:text>&#10;</xsl:text>
141 <xsl:apply-templates select="fm:Changes" mode="text"/>
142 <xsl:text>&#10;</xsl:text>
143 </xsl:template>
144
145 <xsl:template match="fm:Changes"/>
146
147 <xsl:template match="fm:*">
148 <xsl:value-of select="local-name(.)"/>
149 <xsl:text>: </xsl:text>
150
151 <xsl:call-template name="value">
152 <xsl:with-param name="text" select="normalize-space(.)"/>
153 </xsl:call-template>
154 <xsl:text>&#10;</xsl:text>
155 </xsl:template>
156
157 <xsl:template name="value">
158 <xsl:param name="text"/>
159
160 <xsl:call-template name="string.subst">
161 <xsl:with-param name="string" select="$text"/>
162 <xsl:with-param name="target" select="'{VERSION}'"/>
163 <xsl:with-param name="replacement" select="$VERSION"/>
164 </xsl:call-template>
165 </xsl:template>
166
167 <xsl:template name="string.subst">
168 <xsl:param name="string"/>
169 <xsl:param name="target"/>
170 <xsl:param name="replacement"/>
171
172 <xsl:choose>
173 <xsl:when test="contains($string, $target)">
174 <xsl:variable name="rest">
175 <xsl:call-template name="string.subst">
176 <xsl:with-param name="string" select="substring-after($string, $target)"/>
177 <xsl:with-param name="target" select="$target"/>
178 <xsl:with-param name="replacement" select="$replacement"/>
179 </xsl:call-template>
180 </xsl:variable>
181 <xsl:value-of select="concat(substring-before($string, $target),
182 $replacement,
183 $rest)"/>
184 </xsl:when>
185 <xsl:otherwise>
186 <xsl:value-of select="$string"/>
187 </xsl:otherwise>
188 </xsl:choose>
189 </xsl:template>
190
191 </xsl:stylesheet>