greenstone.org greenstone wiki greenstone trac planet greenstone

root/greenstone3/trunk/dist-resources/tomcat-server.xsl

http://svn.greenstone.org/greenstone3/trunk/dist-resources/tomcat-server.xsl
Revision 7776, 1.4 kB (checked in by kjdon, 4 years ago)

an xslt used in the installshield installer to modify tomcats server.xml

  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xsl:stylesheet version="1.0"
3   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5  <!-- we basically want to copy everything, but add in a few bits for gs3 -->
6   <xsl:output method="xml"/>
7  
8   <xsl:template match="Server">
9     <xsl:copy>
10       <xsl:copy-of select="@*"/>
11       <xsl:apply-templates/>
12     </xsl:copy>
13     <xsl:text>
14     </xsl:text>
15   </xsl:template>
16  
17   <xsl:template match="Service | Engine ">
18     <xsl:copy>
19       <xsl:copy-of select="@*"/>
20       <xsl:apply-templates/>
21     </xsl:copy>
22   </xsl:template>
23  
24   <xsl:template match="Connector[@port='8080']">
25     <xsl:copy>
26     <xsl:for-each select="@*">
27       <xsl:choose>
28         <xsl:when test="name()='port'">
29           <xsl:attribute name="port">@port@</xsl:attribute>
30         </xsl:when>
31         <xsl:otherwise>
32           <xsl:copy-of select="."/>
33         </xsl:otherwise>
34       </xsl:choose>
35     </xsl:for-each>
36       <xsl:apply-templates/>
37     </xsl:copy>
38   </xsl:template>
39          
40   <xsl:template match="Host">
41     <xsl:copy>
42       <xsl:copy-of select="@*"/>
43       <xsl:apply-templates/>
44       <Context path="/gsdl3" docBase="@gsdl3home@/web" debug="1"
45         reloadable="true">
46         <Resources allowLinking='true'/>
47       </Context>
48     </xsl:copy>
49   </xsl:template>
50      
51   <xsl:template match="*">
52     <xsl:copy-of select="."/>
53   </xsl:template>
54
55   <xsl:template match="comment()">
56     <xsl:copy-of select="."/>
57     <xsl:text>
58 </xsl:text>
59   </xsl:template>
60    
61 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.