1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                version='1.0'
4                xmlns="http://www.w3.org/TR/xhtml1/transitional"
5                exclude-result-prefixes="#default">
6
7<!-- *****************************Legalnotice*******************-->
8
9<!-- Puts a link on the title page to each legalnotice. -->
10<xsl:param name="generate.legalnotice.link" select="0"/>
11
12<xsl:template match="legalnotice[1]" mode="titlepage.mode">
13  <xsl:text>&#xA;</xsl:text>
14  <h2>
15  <xsl:call-template name="gentext">
16    <xsl:with-param name="key" select="'legalnotice'"/>
17  </xsl:call-template>
18  </h2>
19  <xsl:apply-templates mode="titlepage.mode"/>
20</xsl:template>
21
22<!-- Makes the address inside the legalnotice inline instead of separated
23  	 from the body of the text.-->
24<xsl:template match="legalnotice//address">
25  <xsl:param name="suppress-numbers" select="'0'"/>
26  <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
27
28  <xsl:variable name="rtf">
29    <xsl:apply-templates mode="inline-address"/>
30  </xsl:variable>
31
32  <xsl:choose>
33    <xsl:when test="$suppress-numbers = '0'
34                    and @linenumbering = 'numbered'
35                    and $use.extensions != '0'
36                    and $linenumbering.extension != '0'">
37          <xsl:call-template name="number.rtf.lines">
38            <xsl:with-param name="rtf" select="$rtf"/>
39          </xsl:call-template>
40    </xsl:when>
41
42    <xsl:otherwise>
43          <xsl:apply-templates mode="inline-address"/>
44    </xsl:otherwise>
45  </xsl:choose>
46</xsl:template>
47
48<!-- Added a comma after the street, city and postal code. -->
49<xsl:template match="street|city|postcode" mode="inline-address">
50  <xsl:apply-templates mode="inline-address"/>
51  <xsl:text>, </xsl:text>
52</xsl:template>
53
54<xsl:template match="state|country" mode="inline-address">
55  <xsl:apply-templates mode="inline-address"/>
56</xsl:template>
57
58
59<xsl:template match="legalnotice/title" mode="titlepage.mode">
60  <h2><xsl:apply-templates/></h2>
61</xsl:template>
62
63
64</xsl:stylesheet>
65