Project

General

Profile

« Previous | Next » 

Revision 5719

include additional parameters added since sbclter modified these stylesheets.
also remove the duplicate param that caused xslt processors to fail (sometimes)

View differences:

lib/style/shared/eml-2/eml-settings.xsl
96 96

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

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

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

  
118

  
105 119
<!--
106 120
   /**
107 121
    *   the path of the directory where the XSL and CSS files reside - starts
......
114 128
    */
115 129
-->
116 130

  
117
    <xsl:param name="stylePath">./style/skins</xsl:param>
131
    <xsl:param name="stylePath">{$contextURL}/style/skins</xsl:param>
118 132

  
119 133

  
120 134
<!--
......
129 143
    */
130 144
-->
131 145

  
132
    <xsl:param name="styleCommonPath">./style/common</xsl:param>
146
    <xsl:param name="styleCommonPath">{$contextURL}/style/common</xsl:param>
133 147

  
134

  
135 148
<!--the docid of xml which is processed-->
136 149
    <xsl:param name="docid"/>
137 150
<!-- type of entity, data table or spacial raster or others-->
......
147 160
<!-- the levle of distribution -->
148 161
    <xsl:param name="distributionlevel"/>
149 162
<!-- the index of additional metadata-->
150
    <xsl:param name="additionalmetadataindex"/>
163
    <xsl:param name="additionalmetadataindex">1</xsl:param>
151 164
<!-- attribute set to get rid of cell spacing-->
152 165
    <xsl:attribute-set name="cellspacing">
153 166
      <xsl:attribute name="cellpadding">0</xsl:attribute>
154 167
      <xsl:attribute name="cellspacing">0</xsl:attribute>
155 168
    </xsl:attribute-set>
156 169

  
170
<!-- determines whether to use metacat or LSID identiers-->
171
	<xsl:param name="lsidauthority"></xsl:param>
172
<!-- the url for the data registry of the dataset-->
173
	<xsl:param name="registryurl"></xsl:param>
174
<!-- the name of the data registry of the dataset-->
175
	<xsl:param name="registryname"></xsl:param>
157 176

  
177
  
178
<!-- for getting the server context and cgi locations -->  
179
  <xsl:param name="contextURL"/>
180
  <xsl:param name="cgi-prefix"/>
181
  
182
<!-- for access to "protected" documents/files -->  
183
  <xsl:param name="sessionid"/>
184
  
185
  
158 186
<!--
159 187
    /**
160 188
    *   The base URI to be used for the href link to each document in a
......
162 190
    *
163 191
    *   EXAMPLE:
164 192
    *       <xsl:param name="tripleURI">
165
    *         <![CDATA[/brooke/catalog/metacat?action=read&qformat=knb&docid=]]>
193
    *         <![CDATA[/brooke/servlet/metacat?action=read&qformat=knb&docid=]]>
166 194
    *       </xsl:param>
167 195
    *
168 196
    *   (Note in the above case the "qformat=knb" parameter in the url; a system
......
171 199
    */
172 200
-->
173 201

  
174
    <xsl:param name="tripleURI"><![CDATA[./metacat?action=read&qformat=]]><xsl:value-of select="$qformat" /><![CDATA[&docid=]]></xsl:param>
202
  <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>
175 203

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

  
179 207

  
180 208
<!--
......
203 231
<!--    the style for major rows containing subsection titles etc. -->
204 232
  <xsl:param name="subHeaderStyle" select="'tablehead'"/>
205 233

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

  

Also available in: Unified diff