~ubuntu-branches/ubuntu/vivid/yelp-xsl/vivid-proposed

« back to all changes in this revision

Viewing changes to xslt/docbook/utils/credits.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 10:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20101129100013-1fxze8fm1fegxl8w
Tags: upstream-2.31.6
ImportĀ upstreamĀ versionĀ 2.31.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
 
2
<!--
 
3
This program is free software; you can redistribute it and/or modify it under
 
4
the terms of the GNU Lesser General Public License as published by the Free
 
5
Software Foundation; either version 2 of the License, or (at your option) any
 
6
later version.
 
7
 
 
8
This program is distributed in the hope that it will be useful, but WITHOUT
 
9
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
10
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
11
details.
 
12
 
 
13
You should have received a copy of the GNU Lesser General Public License
 
14
along with this program; see the file COPYING.LGPL.  If not, write to the
 
15
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
16
02111-1307, USA.
 
17
-->
 
18
 
 
19
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
20
                version="1.0">
 
21
 
 
22
<xsl:output method="text" encoding="utf-8"/>
 
23
 
 
24
<xsl:include href="../common/db-common.xsl"/>
 
25
 
 
26
<xsl:template match="/">
 
27
  <xsl:for-each select="/*/*//author">
 
28
    <xsl:choose>
 
29
      <xsl:when test="personnname">
 
30
        <xsl:call-template name="db.personname">
 
31
          <xsl:with-param name="node" select="personname"/>
 
32
        </xsl:call-template>
 
33
      </xsl:when>
 
34
      <xsl:otherwise>
 
35
        <xsl:call-template name="db.personname">
 
36
          <xsl:with-param name="node" select="."/>
 
37
        </xsl:call-template>
 
38
      </xsl:otherwise>
 
39
    </xsl:choose>
 
40
    <xsl:if test="email">
 
41
      <xsl:text> &lt;</xsl:text>
 
42
      <xsl:value-of select="email"/>
 
43
      <xsl:text>&gt;</xsl:text>
 
44
    </xsl:if>
 
45
    <xsl:text>&#x000A;</xsl:text>
 
46
  </xsl:for-each>
 
47
</xsl:template>
 
48
 
 
49
</xsl:stylesheet>