Project

General

Profile

« Previous | Next » 

Revision 1661

Added by Jing Tao about 21 years ago

Revised some templates.

View differences:

lib/style/eml2/eml-identifier-2.0.0.xsl
39 39
        <xsl:if test="normalize-space(.)">
40 40
          <table class="tabledefault" width="100%">
41 41
           <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
42
            Metadata Identifier:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
42
            Identifier:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
43 43
             <xsl:value-of select="$packageID"/></td></tr>
44 44
             <xsl:if test="normalize-space(../@system)!=''">
45 45
                <tr><td width="{$firstColWidth}" class="{$firstColStyle}">
46
                  Metadata Catalog System:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
46
                  Catalog System:</td><td width="{$secondColWidth}" class="{$secondColStyle}">
47 47
                  <xsl:value-of select="$system"/></td></tr>
48 48
             </xsl:if>
49 49
          </table>
lib/style/eml2/eml-party-2.0.0.xsl
65 65
      <xsl:if test="normalize-space(.)!=''">
66 66
        <tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" >
67 67
            Individual:</td><td width="{$secondColWidth}" class="{$secondColStyle}" >
68
           <xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
68
           <b><xsl:value-of select="./salutation"/><xsl:text> </xsl:text>
69 69
           <xsl:value-of select="./givenName"/><xsl:text> </xsl:text>
70
           <xsl:value-of select="./surName"/>
70
           <xsl:value-of select="./surName"/></b>
71 71
        </td></tr>
72 72
      </xsl:if>
73 73
  </xsl:template>
......
97 97
  <xsl:template match="address" mode="party">
98 98
    <xsl:param name="partyfirstColStyle"/>
99 99
    <xsl:if test="normalize-space(.)!=''">
100
    <tr><td width="{$firstColWidth}" valign="top" class="{$partyfirstColStyle}">
101
        Address:</td><td width="{$secondColWidth}" >
102
    <table width="100%">
103
    <xsl:for-each select="./deliveryPoint">
104
    <tr><td><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
105
    </xsl:for-each>
106
    <!-- only include comma if city exists... -->
107
    <xsl:if test="normalize-space(./city)!=''">
108
        <tr><td><xsl:value-of select="./city"/><xsl:text>, </xsl:text></td></tr>
100
      <xsl:call-template name="addressCommon">
101
         <xsl:with-param name="partyfirstColStyle" select="$partyfirstColStyle"/>
102
      </xsl:call-template>
109 103
    </xsl:if>
110
    <xsl:if test="normalize-space(./administrativeArea)!='' or normalize-space(./postalCode)!=''">
111
        <tr><td><xsl:value-of select="./administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="./postalCode"/></td></tr>
112
    </xsl:if>
113
    <xsl:if test="normalize-space(./country)!=''">
114
      <tr><td><xsl:value-of select="./country"/></td></tr>
115
    </xsl:if>
116
    </table></td></tr>
117
    </xsl:if>
118 104
    </xsl:template>
119 105
    
120 106
   <!-- This template will be call by other place-->
......
146 132
    <tr><td width="{$firstColWidth}" valign="top" class="{$partyfirstColStyle}">
147 133
        Address:</td><td width="{$secondColWidth}" >
148 134
    <table width="100%">
149
    <xsl:for-each select="./deliveryPoint">
135
    <xsl:for-each select="deliveryPoint">
150 136
    <tr><td><xsl:value-of select="."/><xsl:text>, </xsl:text></td></tr>
151 137
    </xsl:for-each>
152 138
    <!-- only include comma if city exists... -->
153
    <xsl:if test="normalize-space(./city)!=''">
154
        <tr><td><xsl:value-of select="./city"/><xsl:text>, </xsl:text></td></tr>
139
    <tr><td>
140
    <xsl:if test="normalize-space(city)!=''">
141
        <xsl:value-of select="city"/><xsl:text>, </xsl:text>
155 142
    </xsl:if>
156
    <xsl:if test="normalize-space(./administrativeArea)!='' or normalize-space(./postalCode)!=''">
157
        <tr><td><xsl:value-of select="./administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="./postalCode"/></td></tr>
143
    <xsl:if test="normalize-space(administrativeArea)!='' or normalize-space(postalCode)!=''">
144
        <xsl:value-of select="administrativeArea"/><xsl:text> </xsl:text><xsl:value-of select="postalCode"/><xsl:text> </xsl:text>
158 145
    </xsl:if>
159
    <xsl:if test="normalize-space(./country)!=''">
160
      <tr><td><xsl:value-of select="./country"/></td></tr>
161
    </xsl:if>
146
    <xsl:if test="normalize-space(country)!=''">
147
      <xsl:value-of select="country"/>
148
    </xsl:if></td></tr>
162 149
    </table></td></tr>
163 150
    </xsl:if>
164 151
   </xsl:template>
......
179 166
      <xsl:if test="normalize-space(.)!=''">
180 167
      <tr><td width="{$firstColWidth}" class="{$partyfirstColStyle}" >
181 168
        Email Address:</td><td width="{$secondColWidth}">
182
        <xsl:value-of select="."/></td></tr>
169
        <a><xsl:attribute name="href">mailto:<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="./entityName"/>
170
        <xsl:value-of select="."/></a></td></tr>
183 171
      </xsl:if>
184 172
  </xsl:template>
185 173

  
lib/style/eml2/eml-2.0.0.xsl
92 92
   <xsl:template name="datasetpart">
93 93
      <tr><td>
94 94
         <center>
95
            <h1>Data Set Description</h1>
96
            <h3>Ecological Metadata Language</h3>
97
         </center>
95
            <h3>Data Set Description</h3>
96
           </center>
98 97
      </td></tr>
99 98
      <tr>
100 99
          <td width="100%">
......
115 114
    <xsl:template name="entitypart">
116 115
      <tr><td>
117 116
         <center>
118
            <h1>Entity Description</h1>
119
            <h3>Ecological Metadata Language</h3>
120
         </center>
117
            <h3>Entity Description</h3>
118
           </center>
121 119
      </td></tr>
122 120
      <tr>
123 121
          <td width="100%">
......
151 149
    <xsl:template name="attributepart">
152 150
      <tr><td>
153 151
         <center>
154
            <h1>Attributes Description</h1>
155
            <h3>Ecological Metadata Language</h3>
152
            <h3>Attributes Description</h3>
156 153
         </center>
157 154
      </td></tr>
158 155
      <tr>
......
184 181
       ********************************************************-->
185 182
   <xsl:template name="emlcitation">
186 183
       <center>
187
          <h1>Citation Description</h1>
188
          <h3>Ecological Metadata Language</h3>
184
          <h3>Citation Description</h3>
189 185
        </center>
190 186
        <table class="tabledefault" width="100%">
191 187
        <tr>
......
215 211
   
216 212
   <xsl:template name="emlsoftware">
217 213
     <center>
218
          <h1>Software Description</h1>
219
          <h3>Ecological Metadata Language</h3>
214
          <h3>Software Description</h3>
220 215
     </center>
221 216
     <table class="tabledefault" width="100%">
222 217
       <tr><td width="100%">
......
235 230
   
236 231
   <xsl:template name="emlprotocol">
237 232
    <center>
238
          <h1>Protocol Description</h1>
239
          <h3>Ecological Metadata Language</h3>
240
     </center>
233
          <h3>Protocol Description</h3>
234
    </center>
241 235
     <table class="tabledefault" width="100%">
242 236
       <tr><td width="100%">
243 237
          <xsl:call-template name="identifier">

Also available in: Unified diff