Project

General

Profile

« Previous | Next » 

Revision 3780

Added by daigle about 16 years ago

Changes to remove ANT tokens for the turnkey install project

View differences:

resultset.xsl
29 29
* into an HTML format suitable for rendering with modern web browsers.
30 30
-->
31 31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32

  
32
  
33 33
  <!-- import the header, footer, and sidebars for customized styling -->
34
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/pageheader.xsl"/>
35
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/pagefooter.xsl"/>
36
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/page_leftsidebar.xsl"/>
37
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/page_rightsidebar.xsl"/>
38
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/loginbox.xsl"/>
39
  <xsl:import href="@systemidserver@@style-skins-path@/@default-style@/templates/xsl/searchbox.xsl"/>
34
  <xsl:import href="./pageheader.xsl"/>
35
  <xsl:import href="./pagefooter.xsl"/>
36
  <xsl:import href="./page_leftsidebar.xsl"/>
37
  <xsl:import href="./page_rightsidebar.xsl"/>
38
  <xsl:import href="./loginbox.xsl"/>
39
  <xsl:import href="./searchbox.xsl"/>
40 40

  
41 41
  <!-- send the resultset back to the browser styled in HTML -->
42 42
  <xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes"
......
46 46
  <xsl:param name="cgi-url" select='string("")'/>
47 47
  <xsl:param name="sessid"/>
48 48
  <xsl:param name="enableediting">false</xsl:param>
49
  <xsl:param name="contextURL"/>
49 50
  <!-- This parameter gets overidden by the chosen default qformat -->
50 51
  <xsl:param name="qformat">default</xsl:param>
52
  <xsl:param name="servletURL"/>
51 53

  
52 54
  <!-- The main template matches the XML document root -->
53 55
  <xsl:template match="/">
54 56
   <html>
55 57
      <head>
56 58
        <link rel="stylesheet" type="text/css" 
57
              href="@style-skins-path@/{$qformat}/{$qformat}.css" />
59
              href="{$contextURL}/style/skins/{$qformat}/{$qformat}.css" />
58 60
        <script language="Javascript" type="text/JavaScript"
59
          src="@style-skins-path@/{$qformat}/{$qformat}.js" />
61
          src="{$contextURL}/style/skins/{$qformat}/{$qformat}.js" />
60 62
        <script language="Javascript" type="text/JavaScript"
61
          src="@style-common-path@/branding.js" />
63
          src="{$contextURL}/style/common/branding.js" />
62 64
        <script language="JavaScript">
63 65
          <![CDATA[
64 66
          function submitform(action,form_ref) {
......
139 141
                  Build a submit form to view the data package details, using hidden
140 142
                  fields to POST the query values.
141 143
                  --> 
142
                  <form action="@servlet-path@" method="POST">
144
                  <form action="{$servletURL}" method="POST">
143 145
              <xsl:attribute name="name">
144 146
                <xsl:value-of select="translate(./docid, '()-.', '')" />
145 147
              </xsl:attribute>
......
253 255
                        <xsl:variable name="docID" select="substring-after($URL1, '/')"/>
254 256
                        <xsl:attribute name="href">
255 257
                          <!-- this needs to be on one line ... -->
256
                          <xsl:text>@systemidserver@@servlet-path@?action=read&amp;qformat=</xsl:text><xsl:value-of select="$qformat"/><xsl:text>&amp;docid=</xsl:text><xsl:value-of select="$docID"/>
258
                          <xsl:text>{$servletURL}?action=read&amp;qformat=</xsl:text><xsl:value-of select="$qformat"/><xsl:text>&amp;docid=</xsl:text><xsl:value-of select="$docID"/>
257 259
                        </xsl:attribute>
258 260
                      </xsl:when>
259 261
                      <xsl:otherwise>
......
276 278
                  </xsl:choose>
277 279
                </xsl:attribute>
278 280
          
279
                  <form action="@servlet-path@" method="POST">
281
                  <form action="{$servletURL}" method="POST">
280 282
                    <input type="hidden" name="action" value="read"/>
281 283
               <input type="hidden" name="qformat" value="{$qformat}"/>
282 284
                 <input type="hidden" name="sessionid"  value="{$sessid}"/>

Also available in: Unified diff