User: starksm 
  Date: 01/10/30 21:42:37

  Added:       varia/src/resources/boot default.xsl web.xml
  Log:
  boot servlet war descriptor and sample default XSL file for transforming
  the installation config files
  
  Revision  Changes    Path
  1.1                  contrib/varia/src/resources/boot/default.xsl
  
  Index: default.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                  xmlns:java="http://xml.apache.org/xslt/java";
                  version="1.0">
  
    <!-- Define variables that are to be replaced -->
    <xsl:variable name="INSTALL_PATH" select="'/tmp/jboss'"/>
    <xsl:variable name="CONF_NAME" select="'default'"/>
  
    <!-- The transformation definitions -->
    <xsl:template match='/'>
      <xsl:apply-templates />
    </xsl:template>
  
    <xsl:template match='mbean/attribute/text()'>
      <xsl:variable name="text" select="."/>
      <!-- Replace any variable reference -->
      <xsl:value-of 
select="java:org.jboss.boot.servlets.Util.replaceVariables($text)"/>
    </xsl:template>
  
    <!-- Copy all other elements -->
    <xsl:template match='*|@*|comment()'>
      <xsl:copy>
        <xsl:apply-templates select='@*|node()'/>
      </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  contrib/varia/src/resources/boot/web.xml
  
  Index: web.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
  
  <web-app>
  <!-- ### Servlets -->
      <servlet>
          <servlet-name>BootServlet</servlet-name>
          <servlet-class>org.jboss.boot.servlets.BootServlet</servlet-class>
          <init-param>
              <param-name>configBaseDir</param-name>
              <param-value>G:/tmp/boot</param-value>
          </init-param>
          <init-param>
              <param-name>transformBaseDir</param-name>
              <param-value>G:/tmp/boot/transform</param-value>
          </init-param>
          <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
          <servlet-name>BootServlet</servlet-name>
          <url-pattern>/BootServlet/*</url-pattern>
      </servlet-mapping>
  
      <!-- The Welcome File List -->
      <welcome-file-list>
          <welcome-file>index.html</welcome-file>
      </welcome-file-list>
  
  </web-app>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to