Project

General

Profile

« Previous | Next » 

Revision 7982

View differences:

lib/style/skins/metacatui/eml-2/eml-party.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matthew Brooke
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-variable.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34
  <xsl:output method="html" encoding="iso-8859-1"
35
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
36
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
37
              indent="yes" />  
38

  
39
  <!-- This module is for party member and it is self contained-->
40

  
41
  <xsl:template name="party">
42
      <xsl:param name="partyfirstColStyle"/>
43
      <table class="{$tabledefaultStyle}">
44
        <xsl:choose>
45
         <xsl:when test="references!=''">
46
          <xsl:variable name="ref_id" select="references"/>
47
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
48
          <xsl:for-each select="$references">
49
            <xsl:apply-templates mode="party">
50
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
51
            </xsl:apply-templates>
52
          </xsl:for-each>
53
        </xsl:when>
54
        <xsl:otherwise>
55
          <xsl:apply-templates mode="party">
56
            <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
57
          </xsl:apply-templates>
58
        </xsl:otherwise>
59
      </xsl:choose>
60
      </table>
61
  </xsl:template>
62

  
63
  <!-- *********************************************************************** -->
64

  
65

  
66
  <xsl:template match="individualName" mode="party">
67
      <xsl:param name="partyfirstColStyle"/>
68
      <xsl:if test="normalize-space(.)!=''">
69
        <tr><td class="{$partyfirstColStyle}" >
70
            Individual:</td><td class="{$secondColStyle}" >
71
           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
72
           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
73
           <xsl:value-of select="./surName"/></b>
74
        </td></tr>
75
      </xsl:if>
76
  </xsl:template>
77

  
78

  
79
  <xsl:template match="organizationName" mode="party">
80
      <xsl:param name="partyfirstColStyle"/>
81
      <xsl:if test="normalize-space(.)!=''">
82
        <tr><td class="{$partyfirstColStyle}" >
83
        Organization:</td><td class="{$secondColStyle}">
84
        <b><xsl:value-of select="."/></b>
85
        </td></tr>
86
      </xsl:if>
87
  </xsl:template>
88

  
89

  
90
  <xsl:template match="positionName" mode="party">
91
      <xsl:param name="partyfirstColStyle"/>
92
      <xsl:if test="normalize-space(.)!=''">
93
      <tr><td class="{$partyfirstColStyle}">
94
        Position:</td><td class="{$secondColStyle}">
95
        <xsl:value-of select="."/></td></tr>
96
      </xsl:if>
97
  </xsl:template>
98

  
99

  
100
  <xsl:template match="address" mode="party">
101
    <xsl:param name="partyfirstColStyle"/>
102
    <xsl:if test="normalize-space(.)!=''">
103
      <xsl:call-template name="addressCommon">
104
         <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
105
      </xsl:call-template>
106
    </xsl:if>
107
    </xsl:template>
108

  
109
   <!-- This template will be call by other place-->
110
   <xsl:template name="address">
111
      <xsl:param name="partyfirstColStyle"/>
112
      <table class="{$tablepartyStyle}">
113
        <xsl:choose>
114
         <xsl:when test="references!=''">
115
          <xsl:variable name="ref_id" select="references"/>
116
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
117
          <xsl:for-each select="$references">
118
            <xsl:call-template name="addressCommon">
119
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
120
            </xsl:call-template>
121
          </xsl:for-each>
122
        </xsl:when>
123
        <xsl:otherwise>
124
          <xsl:call-template name="addressCommon">
125
             <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
126
          </xsl:call-template>
127
        </xsl:otherwise>
128
      </xsl:choose>
129
      </table>
130
  </xsl:template>
131

  
132
   <xsl:template name="addressCommon">
133
    <xsl:param name="partyfirstColStyle"/>
134
    <xsl:if test="normalize-space(.)!=''">
135
    <tr><td class="{$partyfirstColStyle}">
136
        Address:</td><td>
137
    <table class="{$tablepartyStyle}">
138
    <xsl:for-each select="deliveryPoint">
139
    <tr><td class="{$secondColStyle}"><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
140
    </xsl:for-each>
141
    <!-- only include comma if city exists... -->
142
    <tr><td class="{$secondColStyle}" >
143
    <xsl:if test="normalize-space(city)!=''">
144
        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
145
    </xsl:if>
146
    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
147
        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
148
    </xsl:if>
149
    <xsl:if test="normalize-space(country)!=''">
150
      <xsl:value-of select="country"/>
151
    </xsl:if></td></tr>
152
    </table></td></tr>
153
    </xsl:if>
154
   </xsl:template>
155

  
156
  <xsl:template match="phone" mode="party">
157
      <xsl:param name="partyfirstColStyle"/>
158
      <tr><td class="{$partyfirstColStyle}" >
159
             Phone:
160
          </td>
161
          <td>
162
            <table class="{$tablepartyStyle}">
163
              <tr><td class="{$secondColStyle}">
164
                     <xsl:value-of select="."/>
165
                     <xsl:if test="normalize-space(./@phonetype)!=''">
166
                       <xsl:text> (</xsl:text><xsl:value-of select="./@phonetype"/><xsl:text>)</xsl:text>
167
                     </xsl:if>
168
                   </td>
169
               </tr>
170
             </table>
171
          </td>
172
      </tr>
173
  </xsl:template>
174

  
175

  
176
  <xsl:template match="electronicMailAddress" mode="party">
177
      <xsl:param name="partyfirstColStyle"/>
178
      <xsl:if test="normalize-space(.)!=''">
179
       <tr><td class="{$partyfirstColStyle}" >
180
            Email Address:
181
          </td>
182
          <td>
183
            <table class="{$tablepartyStyle}">
184
              <tr><td class="{$secondColStyle}">
185
                    <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute>
186
                    <xsl:value-of select="."/></a>
187
                   </td>
188
              </tr>
189
            </table>
190
          </td>
191
        </tr>
192
      </xsl:if>
193
  </xsl:template>
194

  
195

  
196
  <xsl:template match="onlineUrl" mode="party">
197
      <xsl:param name="partyfirstColStyle"/>
198
      <xsl:if test="normalize-space(.)!=''">
199
      <tr><td class="{$partyfirstColStyle}" >
200
            Web Address:
201
          </td>
202
          <td>
203
             <table class="{$tablepartyStyle}">
204
               <tr><td class="{$secondColStyle}">
205
                     <a><xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
206
                     <xsl:value-of select="."/></a>
207
                    </td>
208
               </tr>
209
             </table>
210
           </td>
211
        </tr>
212
      </xsl:if>
213
  </xsl:template>
214

  
215

  
216
  <xsl:template match="userId" mode="party">
217
      <xsl:param name="partyfirstColStyle"/>
218
      <xsl:if test="normalize-space(.)!=''">
219
      <tr><td class="{$partyfirstColStyle}" >
220
        Id:</td><td class="{$secondColStyle}">
221
        <xsl:value-of select="."/></td></tr>
222
      </xsl:if>
223
  </xsl:template>
224
  <xsl:template match="text()" mode="party" />
225
</xsl:stylesheet>
0 226

  
lib/style/skins/metacatui/eml-2/eml-settings.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matthew Brooke
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  *****************************************************************************
28
  *
29
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet that provides a
30
  * single, central location for setting all installation-specific paths for
31
  * XSLT stylesheets.  It is intended to be imported (using the
32
  * <xsl:import href="..." /> element) into other XSLT stylesheets used in the
33
  * transformation of xml files that are valid with respect to the
34
  * applicable dtd of the Ecological Metadata Language (EML).
35

  
36
  * Some of these paths incorporate values of the form: @token-name@; these are
37
  * intended to allow an Ant (http://jakarta.apache.org/ant/index.html) build
38
  * script to replace the tokens automatically with the correct values at build/
39
  * install time.  If Ant is not used, the tokens may simply be edited by hand
40
  * to point to the correct resources.
41
  * Note that the values given below may be overridden by passing parameters to
42
  * the XSLT processor programatically, although the procedure for doing so is
43
  * vendor-specific.  Note also that these parameter definitions will be overridden
44
  * by any identical parameter names declared within xsl stylesheets that import
45
  * this stylesheet.
46
  *
47
-->
48

  
49
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
50

  
51

  
52
<!--
53
    /**
54
    *   The filename of the default css stylesheet to be used
55
    *   (filename only - not the whole path, and no ".css" extension.  The
56
    *   example below would look for a file named "default.css" in the same
57
    *   directory as the stylesheets
58
    */
59
-->
60

  
61
  <xsl:param name="qformat">default</xsl:param>
62

  
63

  
64
<!--
65
    /**
66
    *   The module which need to be display in eml2 document. The default
67
    *   value is dataset
68
    */
69
-->
70
  <xsl:param name="displaymodule">dataset</xsl:param>
71

  
72

  
73
<!--
74
    /**
75
    *   To show the links for the Entities in the dataset display module.
76
    */
77
-->
78
  <xsl:param name="withEntityLinks">1</xsl:param>
79

  
80

  
81
<!--
82
    /**
83
    *   To show the link for Additional Metadata in the dataset display module.
84
    */
85
-->
86
  <xsl:param name="withAdditionalMetadataLink">1</xsl:param>
87

  
88

  
89
<!--
90
    /**
91
    *   To show the link for the Original XML in the dataset display module.
92
    */
93
-->
94
  <xsl:param name="withOriginalXMLLink">1</xsl:param>
95

  
96

  
97
<!--
98
    /**
99
    *   To show any html links (emails and webpage).
100
    */
101
-->
102
  <xsl:param name="withHTMLLinks">1</xsl:param>
103

  
104
<!--
105
    /**
106
    *   To show the Attributes table in the entity display.
107
    */
108
-->
109
  <xsl:param name="withAttributes">1</xsl:param>
110

  
111
<!--
112
    /**
113
    *   To insert templates where header and footer are defined.
114
    */
115
-->
116
  <xsl:param name="insertTemplate">1</xsl:param>
117

  
118

  
119
<!--the docid of xml which is processed-->
120
    <xsl:param name="docid"/>
121
<!-- type of entity, data table or spacial raster or others-->
122
    <xsl:param name="entitytype"></xsl:param>
123
<!-- the index of entity in same entity type -->
124
    <xsl:param name="entityindex"/>
125
<!-- the index of attribute in same entity -->
126
    <xsl:param name="attributeindex"/>
127
<!-- the index of physical part in entity part-->
128
    <xsl:param name="physicalindex"/>
129
<!-- the index of distribution in physical part  -->
130
    <xsl:param name="distributionindex"/>
131
<!-- the levle of distribution -->
132
    <xsl:param name="distributionlevel"/>
133
<!-- the index of additional metadata-->
134
    <xsl:param name="additionalmetadataindex">1</xsl:param>
135
<!-- attribute set to get rid of cell spacing-->
136
    <xsl:attribute-set name="cellspacing">
137
      <xsl:attribute name="cellpadding">0</xsl:attribute>
138
      <xsl:attribute name="cellspacing">0</xsl:attribute>
139
    </xsl:attribute-set>
140

  
141
<!-- determines whether to use metacat or LSID identiers-->
142
	<xsl:param name="lsidauthority"></xsl:param>
143
<!-- the url for the data registry of the dataset-->
144
	<xsl:param name="registryurl"></xsl:param>
145
<!-- the name of the data registry of the dataset-->
146
	<xsl:param name="registryname"></xsl:param>
147

  
148
  
149
<!-- for getting the server context and cgi locations -->  
150
  <xsl:param name="contextURL"/>
151
  <xsl:param name="cgi-prefix"/>
152
  
153
<!-- for access to "protected" documents/files -->  
154
  <xsl:param name="sessionid"/>
155
  
156
  
157
<!--
158
    /**
159
    *   The base URI to be used for the href link to each document in a
160
    *   "subject-relationaship-object" triple
161
    *
162
    *   EXAMPLE:
163
    *       <xsl:param name="tripleURI">
164
    *         <![CDATA[/brooke/servlet/metacat?action=read&qformat=knb&docid=]]>
165
    *       </xsl:param>
166
    *
167
    *   (Note in the above case the "qformat=knb" parameter in the url; a system
168
    *   could pass this parameter to the XSLT engine to override the local
169
    *   <xsl:param name="qformat"> tags defined earlier in this document.)
170
    */
171
-->
172

  
173
  <xsl:param name="tripleURI"><xsl:value-of select="$contextURL" /><![CDATA[/metacat?action=read&qformat=]]><xsl:value-of select="$qformat" /><![CDATA[&sessionid=]]><xsl:value-of select="$sessionid" /><![CDATA[&docid=]]></xsl:param>
174

  
175
    <!-- URL for xmlformat-->
176
    <xsl:param name="xmlURI"><xsl:value-of select="$contextURL" /><![CDATA[/metacat?action=read&qformat=xml]]><![CDATA[&sessionid=]]><xsl:value-of select="$sessionid" /><![CDATA[&docid=]]></xsl:param>
177

  
178

  
179
<!--
180
    /**
181
    *   Most of the html pages are currently laid out as a 2-column table, with
182
    *   highlights for more-major rows containing subsection titles etc.
183
    *   The following parameters are used within the
184
    *           <td width="whateverWidth" class="whateverClass">
185
    *   tags to define the column widths and (css) styles.
186
    *
187
    *   The values of the "xxxColWidth" parameters can be percentages (need to
188
    *   include % sign) or pixels (number only). Note that if a width is defined
189
    *   in the CSS stylesheet (see next paragraph), it will override this local
190
    *   width setting in browsers newer than NN4
191
    *
192
    *   The values of the "xxxColStyle" parameters refer to style definitions
193
    *   listed in the *.css stylesheet that is defined in this xsl document,
194
    *   above (in the <xsl:param name="qformat"> tag).
195
    *
196
    *   (Note that if the "qformat" is changed from the default by passing a
197
    *   value in the url (see notes for <xsl:param name="qformat"> tag, above),
198
    *   then the params below must match style names in the "new" CSS stylesheet
199
    */
200
-->
201

  
202
<!--    the style for major rows containing subsection titles etc. -->
203
  <xsl:param name="subHeaderStyle" select="'tablehead'"/>
204

  
205
<!--    the style for major rows containing links, such as additional metadata,
206
        original xml file etc. -->
207
  <xsl:param name="linkedHeaderStyle" select="'linkedHeaderStyle'"/>
208

  
209
<!--    the width for the first column (but see note above) -->
210
  <xsl:param name="firstColWidth" select="'15%'"/>
211

  
212
<!-- the style for the first column -->
213
  <xsl:param name="firstColStyle" select="'rowodd'"/>
214

  
215
<!--    the width for the second column (but see note above) -->
216
  <xsl:param name="secondColWidth" select="'85%'"/>
217

  
218
<!-- the style for the second column -->
219
  <xsl:param name="secondColStyle" select="'roweven'"/>
220

  
221
<!-- the style for the attribute table -->
222
  <xsl:param name="tableattributeStyle" select="'tableattribute'"/>
223

  
224
<!-- the style for the border -->
225
  <xsl:param name="borderStyle" select="'bordered'"/>
226

  
227
<!-- the style for the even col in attributes table -->
228
  <xsl:param name="colevenStyle" select="'coleven'"/>
229

  
230
<!-- the style for the inner even col in attributes table -->
231
  <xsl:param name="innercolevenStyle" select="'innercoleven'"/>
232

  
233
<!-- the style for the odd col in attributes table -->
234
  <xsl:param name="coloddStyle" select="'colodd'"/>
235

  
236
<!-- the style for the inner odd col in attributes table -->
237
  <xsl:param name="innercoloddStyle" select="'innercolodd'"/>
238

  
239

  
240
<!-- the default alignment style for the wrapper around the main tables -->
241
  <!--
242
  <xsl:param name="mainTableAligmentStyle" select="'mainTableAligmentStyle'"/>
243
  -->
244
  <xsl:param name="mainTableAligmentStyle" select="'content'"/>
245

  
246
<!-- the default style for the main container table -->
247
  <xsl:param name="mainContainerTableStyle" select="'group group_border'"/>
248

  
249
<!-- the default style for all other tables -->
250
  <xsl:param name="tabledefaultStyle" select="'subGroup subGroup_border onehundred_percent'"/>
251

  
252
<!-- the style for table party -->
253
  <xsl:param name="tablepartyStyle" select="'tableparty'"/>
254

  
255
<!-- Some html pages use a nested table in the second column.
256
     Some of these nested tables set their first column to
257
     the following width: -->
258
  <xsl:param name="secondColIndent" select="'10%'"/>
259

  
260
<!-- the first column width of attribute table-->
261
  <xsl:param name="attributefirstColWidth" select="'15%'"/>
262

  
263
<!--
264
   /**
265
    *   the path of the directory where the XSL and CSS files reside - starts
266
    *   with context name, eg: /myContextRoot/styleDirectory.
267
    *   (As found in "http://hostname:port/myContextRoot/styleDirectory").
268
    *   Needs leading slash but not trailing slash
269
    *
270
    *   EXAMPLE:
271
    *       <xsl:param name="stylePath">/brooke/style</xsl:param>
272
    */
273
-->
274

  
275
    <xsl:param name="stylePath"><xsl:value-of select="$contextURL" />/style/skins</xsl:param>
276

  
277

  
278
<!--
279
   /*
280
    *   the path of the directory where the common javascript and css files
281
    *   reside - i.e the files that are not skin-specific. Starts
282
    *   with context name, eg: /myContextRoot/styleCommonDirectory.
283
    *   (As found in "http://hostname:port/myContextRoot/styleCommonDirectory").
284
    *
285
    *   EXAMPLE
286
    *       <xsl:param name="styleCommonPath">/brooke/style/common</xsl:param>
287
    */
288
-->
289

  
290
    <xsl:param name="styleCommonPath"><xsl:value-of select="$contextURL" />/style/common</xsl:param>
291

  
292
</xsl:stylesheet>
0 293

  
lib/style/skins/metacatui/eml-2/eml-project.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matthew Brooke
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-variable.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34
  <xsl:output method="html" encoding="iso-8859-1"
35
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
36
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
37
              indent="yes" />  
38

  
39

  
40
   <xsl:template name="project">
41
      <xsl:param name="projectfirstColStyle"/>
42
      <table class="{$tabledefaultStyle}">
43
        <xsl:choose>
44
         <xsl:when test="references!=''">
45
          <xsl:variable name="ref_id" select="references"/>
46
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
47
          <xsl:for-each select="$references">
48
            <xsl:call-template name="projectcommon">
49
             <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
50
            </xsl:call-template>
51
          </xsl:for-each>
52
        </xsl:when>
53
        <xsl:otherwise>
54
          <xsl:call-template name="projectcommon">
55
             <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
56
           </xsl:call-template>
57
        </xsl:otherwise>
58
      </xsl:choose>
59
      </table>
60
  </xsl:template>
61

  
62

  
63

  
64
  <xsl:template name="projectcommon">
65
    <xsl:param name="projectfirstColStyle"/>
66
    <xsl:call-template name="projecttitle">
67
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
68
    </xsl:call-template>
69
    <xsl:call-template name="projectpersonnel">
70
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
71
    </xsl:call-template>
72
    <xsl:call-template name="projectabstract">
73
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
74
    </xsl:call-template>
75
    <xsl:call-template name="projectfunding">
76
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
77
    </xsl:call-template>
78
   <xsl:call-template name="projectstudyareadescription">
79
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
80
    </xsl:call-template>
81
    <xsl:call-template name="projectdesigndescription">
82
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
83
    </xsl:call-template>
84
    <xsl:call-template name="projectrelatedproject">
85
      <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
86
    </xsl:call-template>
87
  </xsl:template>
88

  
89

  
90

  
91
   <xsl:template name="projecttitle">
92
     <xsl:param name="projectfirstColStyle"/>
93
     <xsl:for-each select="title">
94
        <tr><td class="{$projectfirstColStyle}">
95
             Title:
96
             </td>
97
             <td class="{$secondColStyle}" >
98
              <xsl:value-of select="../title"/>
99
             </td>
100
       </tr>
101
     </xsl:for-each>
102
  </xsl:template>
103

  
104

  
105

  
106
  <xsl:template name="projectpersonnel">
107
     <xsl:param name="projectfirstColStyle"/>
108
     <tr><td class="{$projectfirstColStyle}">
109
          Personnel:
110
          </td>
111
          <td>
112
             <table>
113
                 <xsl:for-each select="personnel">
114
                       <tr><td colspan="2">
115
                              <xsl:call-template name="party">
116
                                 <xsl:with-param name="partyfirstColStyle" select="$projectfirstColStyle"/>
117
                              </xsl:call-template>
118
                       </td></tr>
119
                       <xsl:for-each select="role">
120
                          <tr><td class="{$projectfirstColStyle}">
121
                                 Role:
122
                               </td>
123
                               <td>
124
                                 <table class="{$tablepartyStyle}">
125
                                     <tr>
126
                                         <td class="{$secondColStyle}">
127
                                            <xsl:value-of select="."/>
128
                                          </td>
129
                                      </tr>
130
                                  </table>
131
                               </td>
132
                          </tr>
133
                      </xsl:for-each>
134
                </xsl:for-each>
135
             </table>
136
         </td>
137
     </tr>
138
  </xsl:template>
139

  
140

  
141
   <xsl:template name="projectabstract">
142
     <xsl:param name="projectfirstColStyle"/>
143
     <xsl:for-each select="abstract">
144
       <tr><td class="{$projectfirstColStyle}">
145
          Abstract:
146
          </td>
147
          <td>
148
             <xsl:call-template name="text">
149
                <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
150
             </xsl:call-template>
151
         </td>
152
       </tr>
153
     </xsl:for-each>
154
  </xsl:template>
155

  
156
  <xsl:template name="projectfunding">
157
     <xsl:param name="projectfirstColStyle"/>
158
     <xsl:for-each select="funding">
159
       <tr><td class="{$projectfirstColStyle}">
160
          Funding:
161
          </td>
162
          <td>
163
              <xsl:call-template name="text">
164
                 <xsl:with-param name="textfirstColStyle" select="$projectfirstColStyle"/>
165
              </xsl:call-template>
166
         </td>
167
       </tr>
168
    </xsl:for-each>
169
  </xsl:template>
170

  
171

  
172

  
173
   <xsl:template name="projectstudyareadescription">
174
     <xsl:param name="projectfirstColStyle"/>
175
     <xsl:for-each select="studyAreaDescription">
176
       <tr><td class="{$projectfirstColStyle}">
177
           <xsl:text>Study Area:</xsl:text>
178
          </td>
179
          <td>
180
              <table class="{$tabledefaultStyle}">
181
                  <xsl:for-each select="descriptor">
182
                      <xsl:for-each select="descriptorValue">
183
                      <tr><td class="{$projectfirstColStyle}">
184
                            <xsl:value-of select="../@name"/>
185
                          </td>
186
                          <td class="{$secondColStyle}">
187
                             <xsl:choose>
188
                                <xsl:when test="./@citableClassificationSystem">
189
                                  <xsl:value-of select="."/>&#160;<xsl:value-of select="./@name_or_id"/>
190
                                </xsl:when>
191
                                <xsl:otherwise>
192
                                  <xsl:value-of select="."/>&#160;<xsl:value-of select="./@name_or_id"/>&#160;(No Citable Classification System)
193
                                </xsl:otherwise>
194
                              </xsl:choose>
195
                          </td>
196
                      </tr>
197
                      </xsl:for-each>
198
                      <xsl:for-each select="citation">
199
                        <tr><td class="{$projectfirstColStyle}">
200
                              Citation:
201
                            </td>
202
                            <td>
203
                             <xsl:call-template name="citation">
204
                                  <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>
205
                             </xsl:call-template>
206
                           </td>
207
                       </tr>
208
                    </xsl:for-each>
209
               </xsl:for-each>
210
            </table>
211
         </td>
212
       </tr>
213

  
214
       <xsl:for-each select="citation">
215
         <tr><td class="{$projectfirstColStyle}">
216
          Study Area Citation:
217
          </td>
218
          <td>
219
              <xsl:call-template name="citation">
220
                   <xsl:with-param name="citationfirstColStyle" select="projectfirstColStyle"/>
221
               </xsl:call-template>
222
          </td>
223
        </tr>
224
      </xsl:for-each>
225

  
226
       <xsl:for-each select="coverage">
227
        <tr><td class="{$projectfirstColStyle}">
228
          Study Area Coverage:
229
          </td>
230
          <td>
231
             <xsl:call-template name="coverage"/>
232
          </td>
233
        </tr>
234
      </xsl:for-each>
235
    </xsl:for-each>
236
   </xsl:template>
237

  
238

  
239

  
240
  <xsl:template name="projectdesigndescription">
241
    <xsl:param name="projectfirstColStyle"/>
242
    <xsl:for-each select="designDescription">
243
       <xsl:for-each select="description">
244
        <tr><td class="{$projectfirstColStyle}">
245
          Design Description:
246
          </td>
247
          <td>
248
             <xsl:call-template name="text"/>
249
         </td>
250
       </tr>
251
      </xsl:for-each>
252
      <xsl:for-each select="citation">
253
        <tr><td class="{$projectfirstColStyle}">
254
          Design Citation:
255
          </td>
256
          <td >
257
             <xsl:call-template name="citation"/>
258
         </td>
259
       </tr>
260
      </xsl:for-each>
261
    </xsl:for-each>
262
  </xsl:template>
263

  
264

  
265

  
266
  <xsl:template name="projectrelatedproject">
267
    <xsl:param name="projectfirstColStyle"/>
268
    <xsl:for-each select="relatedProject">
269
       <tr><td class="{$projectfirstColStyle}">
270
          Related Project:
271
          </td>
272
          <td>
273
            <xsl:call-template name="project">
274
              <xsl:with-param name="projectfirstColStyle" select="$projectfirstColStyle"/>
275
            </xsl:call-template>
276
         </td>
277
       </tr>
278
    </xsl:for-each>
279
  </xsl:template>
280

  
281

  
282
</xsl:stylesheet>
0 283

  
lib/style/skins/metacatui/eml-2/eml-storedprocedure.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Jivka Bojilova
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-file.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34

  
35
  <xsl:output method="html" encoding="iso-8859-1"
36
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
37
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
38
              indent="yes" />  
39
  <!-- This module is for datatable module-->
40

  
41
  <xsl:template name="storedProcedure">
42
      <xsl:param name="storedprocedurefirstColStyle"/>
43
      <xsl:param name="storedproceduresubHeaderStyle"/>
44
      <xsl:param name="docid"/>
45
      <xsl:param name="entityindex"/>
46
      <table xsl:use-attribute-sets="cellspacing" class="{$tabledefaultStyle}">
47
        <xsl:choose>
48
         <xsl:when test="references!=''">
49
          <xsl:variable name="ref_id" select="references"/>
50
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
51
          <xsl:for-each select="$references">
52
            <xsl:call-template name="storedProcedureCommon">
53
             <xsl:with-param name="storedprocedurefirstColStyle" select="$storedprocedurefirstColStyle"/>
54
             <xsl:with-param name="storedproceduresubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
55
             <xsl:with-param name="docid" select="$docid"/>
56
             <xsl:with-param name="entityindex" select="$entityindex"/>
57
            </xsl:call-template>
58
          </xsl:for-each>
59
        </xsl:when>
60
        <xsl:otherwise>
61
           <xsl:call-template name="storedProcedureCommon">
62
             <xsl:with-param name="storedprocedurefirstColStyle" select="$storedprocedurefirstColStyle"/>
63
             <xsl:with-param name="storedproceduresubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
64
             <xsl:with-param name="docid" select="$docid"/>
65
             <xsl:with-param name="entityindex" select="$entityindex"/>
66
            </xsl:call-template>
67
         </xsl:otherwise>
68
      </xsl:choose>
69
      </table>
70
  </xsl:template>
71

  
72
  <xsl:template name="storedProcedureCommon">
73
    <xsl:param name="storedprocedurefirstColStyle"/>
74
    <xsl:param name="storedproceduresubHeaderStyle"/>
75
    <xsl:param name="docid"/>
76
    <xsl:param name="entityindex"/>
77
    <xsl:for-each select="entityName">
78
       <xsl:call-template name="entityName">
79
          <xsl:with-param name="entityfirstColStyle" select="$storedprocedurefirstColStyle"/>
80
       </xsl:call-template>
81
    </xsl:for-each>
82
    <xsl:for-each select="alternateIdentifier">
83
       <xsl:call-template name="entityalternateIdentifier">
84
          <xsl:with-param name="entityfirstColStyle" select="$storedprocedurefirstColStyle"/>
85
       </xsl:call-template>
86
    </xsl:for-each>
87
    <xsl:for-each select="entityDescription">
88
       <xsl:call-template name="entityDescription">
89
          <xsl:with-param name="entityfirstColStyle" select="$storedprocedurefirstColStyle"/>
90
       </xsl:call-template>
91
    </xsl:for-each>
92
    <xsl:for-each select="additionalInfo">
93
       <xsl:call-template name="entityadditionalInfo">
94
          <xsl:with-param name="entityfirstColStyle" select="$storedprocedurefirstColStyle"/>
95
       </xsl:call-template>
96
    </xsl:for-each>
97
    <!-- call physical moduel without show distribution(we want see it later)-->
98
    <xsl:if test="physical">
99
       <tr><td class="{$storedproceduresubHeaderStyle}" colspan="2">
100
        Physical Structure Description:
101
      </td></tr>
102
    </xsl:if>
103
    <xsl:for-each select="physical">
104
       <tr><td colspan="2">
105
        <xsl:call-template name="physical">
106
         <xsl:with-param name="physicalfirstColStyle" select="$storedprocedurefirstColStyle"/>
107
         <xsl:with-param name="notshowdistribution">yes</xsl:with-param>
108
        </xsl:call-template>
109
        </td></tr>
110
    </xsl:for-each>
111
    
112
    <!-- Here to display distribution info-->
113
    <xsl:for-each select="physical">
114
       <xsl:call-template name="storedProcedureShowDistribution">
115
          <xsl:with-param name="docid" select="$docid"/>
116
          <xsl:with-param name="entityindex" select="$entityindex"/>
117
          <xsl:with-param name="physicalindex" select="position()"/>
118
          <xsl:with-param name="storedprocedurefirstColStyle" select="$storedprocedurefirstColStyle"/>
119
          <xsl:with-param name="storedproceduresubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
120
       </xsl:call-template>
121
    </xsl:for-each>
122
    
123
    <xsl:if test="coverage">
124
       <tr><td class="{$storedproceduresubHeaderStyle}" colspan="2">
125
        Coverage Description:
126
      </td></tr>
127
    </xsl:if>
128
    <xsl:for-each select="coverage">
129
      <tr><td colspan="2">
130
        <xsl:call-template name="coverage">
131
        </xsl:call-template>
132
      </td></tr>
133
    </xsl:for-each>
134
    <xsl:if test="method">
135
       <tr><td class="{$storedproceduresubHeaderStyle}" colspan="2">
136
        Method Description:
137
      </td></tr>
138
    </xsl:if>
139
    <xsl:for-each select="method">
140
      <tr><td colspan="2">
141
        <xsl:call-template name="method">
142
          <xsl:with-param name="methodfirstColStyle" select="$storedprocedurefirstColStyle"/>
143
          <xsl:with-param name="methodsubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
144
        </xsl:call-template>
145
      </td></tr>
146
    </xsl:for-each>
147
    <xsl:if test="constraint">
148
       <tr><td class="{$storedproceduresubHeaderStyle}" colspan="2">
149
        Constraint:
150
      </td></tr>
151
    </xsl:if>
152
    <xsl:for-each select="constraint">
153
      <tr><td colspan="2">
154
        <xsl:call-template name="constraint">
155
          <xsl:with-param name="constraintfirstColStyle" select="$storedprocedurefirstColStyle"/>
156
        </xsl:call-template>
157
      </td></tr>
158
    </xsl:for-each>
159
    <xsl:for-each select="parameter">
160
       <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
161
            Parameter:
162
            </td>
163
            <td width="{$secondColWidth}">
164
               <table xsl:use-attribute-sets="cellspacing" class="{$tabledefaultStyle}">
165
                  <xsl:for-each select="name">
166
                    <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
167
                          Name:
168
                         </td>
169
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
170
                           <xsl:value-of select="."/>
171
                         </td>
172
                     </tr>
173
                  </xsl:for-each>
174
                  <xsl:for-each select="domainDescription">
175
                    <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
176
                          Domain:
177
                         </td>
178
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
179
                           <xsl:value-of select="."/>
180
                         </td>
181
                     </tr>
182
                  </xsl:for-each>
183
                  <xsl:for-each select="required">
184
                    <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
185
                          Required:
186
                         </td>
187
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
188
                           <xsl:value-of select="."/>
189
                         </td>
190
                     </tr>
191
                  </xsl:for-each>
192
                  <xsl:for-each select="repeats">
193
                    <tr><td width="{$firstColWidth}" class="{$storedprocedurefirstColStyle}">
194
                         Repeatable:
195
                         </td>
196
                         <td width="{$secondColWidth}" class="{$secondColStyle}">
197
                           <xsl:value-of select="."/>
198
                         </td>
199
                     </tr>
200
                  </xsl:for-each>
201
               </table>
202
            </td>
203
       </tr>
204
    </xsl:for-each>
205
    <xsl:if test="$withAttributes='1' or $displaymodule='printall'">
206
    <xsl:for-each select="attributeList">
207
      <xsl:call-template name="storedProcedureAttributeList">
208
        <xsl:with-param name="storedprocedurefirstColStyle" select="$storedprocedurefirstColStyle"/>
209
        <xsl:with-param name="storedproceduresubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
210
        <xsl:with-param name="docid" select="$docid"/>
211
        <xsl:with-param name="entityindex" select="$entityindex"/>
212
      </xsl:call-template>
213
    </xsl:for-each>
214
    </xsl:if>
215
     
216
  </xsl:template>
217

  
218
  <xsl:template name="storedProcedureShowDistribution">
219
     <xsl:param name="storedprocedurefirstColStyle"/>
220
     <xsl:param name="storedproceduresubHeaderStyle"/>
221
     <xsl:param name="docid"/>
222
     <xsl:param name="level">entitylevel</xsl:param>
223
     <xsl:param name="entitytype">storedProcedure</xsl:param>
224
     <xsl:param name="entityindex"/>
225
     <xsl:param name="physicalindex"/>
226
     <xsl:for-each select="distribution">
227
      <tr><td colspan="2">
228
        <xsl:call-template name="distribution">
229
          <xsl:with-param name="docid" select="$docid"/>
230
          <xsl:with-param name="level" select="$level"/>
231
          <xsl:with-param name="entitytype" select="$entitytype"/>
232
          <xsl:with-param name="entityindex" select="$entityindex"/>
233
          <xsl:with-param name="physicalindex" select="$physicalindex"/>
234
          <xsl:with-param name="distributionindex" select="position()"/>
235
          <xsl:with-param name="disfirstColStyle" select="$storedprocedurefirstColStyle"/>
236
          <xsl:with-param name="dissubHeaderStyle" select="$storedproceduresubHeaderStyle"/>
237
        </xsl:call-template>
238
      </td></tr>
239
    </xsl:for-each>
240
  </xsl:template>
241

  
242

  
243
  <xsl:template name="storedProcedureAttributeList">
244
    <xsl:param name="storedprocedurefirstColStyle"/>
245
    <xsl:param name="storedproceduresubHeaderStyle"/>
246
    <xsl:param name="docid"/>
247
    <xsl:param name="entitytype">storedProcedure</xsl:param>
248
    <xsl:param name="entityindex"/>
249
    <tr><td class="{$storedproceduresubHeaderStyle}" colspan="2">
250
        <xsl:text>Attribute(s) Info:</xsl:text>
251
    </td></tr>
252
    <tr><td colspan="2">
253
         <xsl:call-template name="attributelist">
254
           <xsl:with-param name="docid" select="$docid"/>
255
           <xsl:with-param name="entitytype" select="$entitytype"/>
256
           <xsl:with-param name="entityindex" select="$entityindex"/>
257
         </xsl:call-template>
258
       </td>
259
    </tr>
260
  </xsl:template>
261

  
262

  
263

  
264
</xsl:stylesheet>
0 265

  
lib/style/skins/metacatui/eml-2/eml-physical.xsl
1
<?xml version="1.0"?>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matthew Brooke
5
  *    Copyright: 2000 Regents of the University of California and the
6
  *               National Center for Ecological Analysis and Synthesis
7
  *  For Details: http://www.nceas.ucsb.edu/
8
  *
9
  *   '$Author$'
10
  *     '$Date$'
11
  * '$Revision$'
12
  *
13
  * This program is free software; you can redistribute it and/or modify
14
  * it under the terms of the GNU General Public License as published by
15
  * the Free Software Foundation; either version 2 of the License, or
16
  * (at your option) any later version.
17
  *
18
  * This program is distributed in the hope that it will be useful,
19
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
  * GNU General Public License for more details.
22
  *
23
  * You should have received a copy of the GNU General Public License
24
  * along with this program; if not, write to the Free Software
25
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
  *
27
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
28
  * convert an XML file that is valid with respect to the eml-variable.dtd
29
  * module of the Ecological Metadata Language (EML) into an HTML format
30
  * suitable for rendering with modern web browsers.
31
-->
32
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
33

  
34
  <xsl:output method="html" encoding="iso-8859-1"
35
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
36
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
37
              indent="yes" />  
38

  
39
   <xsl:template name="physical">
40
      <xsl:param name="docid"/>
41
      <xsl:param name="level">entity</xsl:param>
42
      <xsl:param name="entitytype"/>
43
      <xsl:param name="entityindex"/>
44
      <xsl:param name="physicalindex"/>
45
      <xsl:param name="distributionindex"/>
46
      <xsl:param name="physicalfirstColStyle"/>
47
      <xsl:param name="notshowdistribution"/>
48
      <table class="{$tabledefaultStyle}">
49
        <xsl:choose>
50
         <xsl:when test="references!=''">
51
          <xsl:variable name="ref_id" select="references"/>
52
          <xsl:variable name="references" select="$ids[@id=$ref_id]" />
53
          <xsl:for-each select="$references">
54
            <xsl:call-template name="physicalcommon">
55
              <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
56
              <xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
57
            </xsl:call-template>
58
          </xsl:for-each>
59
        </xsl:when>
60
        <xsl:otherwise>
61
          <xsl:call-template name="physicalcommon">
62
             <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
63
             <xsl:with-param name="notshowdistribution" select="$notshowdistribution"/>
64
          </xsl:call-template>
65
        </xsl:otherwise>
66
      </xsl:choose>
67
      </table>
68
  </xsl:template>
69

  
70
  <xsl:template name="physicalcommon">
71
    <xsl:param name="physicalfirstColStyle"/>
72
    <xsl:param name="notshowdistribution"/>
73
    <xsl:param name="docid"/>
74
    <xsl:param name="level">entity</xsl:param>
75
    <xsl:param name="entitytype"/>
76
    <xsl:param name="entityindex"/>
77
    <xsl:param name="physicalindex"/>
78
    <xsl:param name="distributionindex"/>
79

  
80
    <xsl:call-template name="physicalobjectName">
81
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
82
    </xsl:call-template>
83
    <xsl:call-template name="physicalsize">
84
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
85
    </xsl:call-template>
86
    <xsl:call-template name="physicalauthentication">
87
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
88
    </xsl:call-template>
89
    <xsl:call-template name="physicalcompressionMethod">
90
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
91
    </xsl:call-template>
92
    <xsl:call-template name="physicalencodingMethod">
93
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
94
    </xsl:call-template>
95
    <xsl:call-template name="physicalcharacterEncoding">
96
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
97
    </xsl:call-template>
98
    <xsl:call-template name="physicaltextFormat">
99
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
100
    </xsl:call-template>
101
    <xsl:call-template name="physicalexternallyDefinedFormat">
102
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
103
    </xsl:call-template>
104
    <xsl:call-template name="physicalbinaryRasterFormat">
105
      <xsl:with-param name="physicalfirstColStyle" select="$physicalfirstColStyle"/>
106
    </xsl:call-template>
107
    <xsl:if test="$notshowdistribution=''">
108
      <xsl:for-each select="distribution">
109
        <xsl:call-template name="distribution">
110
          <xsl:with-param name="disfirstColStyle" select="$physicalfirstColStyle"/>
111
          <xsl:with-param name="dissubHeaderStyle" select="$subHeaderStyle"/>
112
          <xsl:with-param name="docid" select="$docid"/>
113
          <xsl:with-param name="level">entitylevel</xsl:with-param>
114
          <xsl:with-param name="entitytype" select="$entitytype"/>
115
          <xsl:with-param name="entityindex" select="$entityindex"/>
116
          <xsl:with-param name="physicalindex" select="$physicalindex"/>
117
          <xsl:with-param name="distributionindex" select="position()"/>
118
        </xsl:call-template>
119
      </xsl:for-each>
120
    </xsl:if>
121

  
122
  </xsl:template>
123

  
124
  <xsl:template name="physicalobjectName">
125
    <xsl:param name="physicalfirstColStyle"/>
126
    <xsl:for-each select="objectName">
127
      <tr>
128
        <td class="{$physicalfirstColStyle}">
129
        Object Name:</td>
130
        <td class="{$secondColStyle}">
131
        <xsl:value-of select="."/></td>
132
      </tr>
133
    </xsl:for-each>
134
  </xsl:template>
135

  
136
  <xsl:template name="physicalsize">
137
    <xsl:param name="physicalfirstColStyle"/>
138
    <xsl:for-each select="size">
139
      <tr>
140
        <td class="{$physicalfirstColStyle}">
141
        Size:</td>
142
        <td class="{$secondColStyle}">
143
        <xsl:value-of select="."/><xsl:text> </xsl:text><xsl:value-of select="./@unit"/></td>
144
      </tr>
145
    </xsl:for-each>
146
  </xsl:template>
147

  
148
  <xsl:template name="physicalauthentication">
149
    <xsl:param name="physicalfirstColStyle"/>
150
    <xsl:for-each select="authentication">
151
      <tr>
152
        <td class="{$physicalfirstColStyle}">
153
        Authentication:</td>
154
        <td class="{$secondColStyle}">
155
          <xsl:value-of select="."/><xsl:text> </xsl:text>
156
          <xsl:if test="./@method">
157
            Caculated By<xsl:text> </xsl:text><xsl:value-of select="./@method"/>
158
          </xsl:if>
159
        </td>
160
      </tr>
161
    </xsl:for-each>
162
  </xsl:template>
163

  
164
  <xsl:template name="physicalcompressionMethod">
165
    <xsl:param name="physicalfirstColStyle"/>
166
    <xsl:for-each select="compressionMethod">
167
      <tr>
168
        <td class="{$physicalfirstColStyle}">
169
        Compression Method:</td>
170
        <td class="{$secondColStyle}">
171
        <xsl:value-of select="."/></td>
172
      </tr>
173
    </xsl:for-each>
174
  </xsl:template>
175

  
176
  <xsl:template name="physicalencodingMethod">
177
    <xsl:param name="physicalfirstColStyle"/>
178
    <xsl:for-each select="encodingMethod">
179
      <tr>
180
        <td class="{$physicalfirstColStyle}">
181
        Encoding Method:</td>
182
        <td class="{$secondColStyle}">
183
        <xsl:value-of select="."/></td>
184
      </tr>
185
    </xsl:for-each>
186
  </xsl:template>
187

  
188
  <xsl:template name="physicalcharacterEncoding">
189
    <xsl:param name="physicalfirstColStyle"/>
190
    <xsl:for-each select="characterEncoding">
191
      <tr>
192
        <td class="{$physicalfirstColStyle}">
193
        Character Encoding:</td>
194
        <td class="{$secondColStyle}">
195
        <xsl:value-of select="."/></td>
196
      </tr>
197
    </xsl:for-each>
198
  </xsl:template>
199

  
200
  <!--***********************************************************
201
      TextFormat templates
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff