Adrian, Using the XSLTFileDelegate works for me, at least in 3.2.5
This is my extract of server-bindings for tomcat bindings | <!-- jbossweb-tomcat50.sar --> | <service-config name="jboss.web:service=WebServer" delegateClass="org.jboss.services.binding.XSLTFileDelegate"> | <delegate-config> | <xslt-config configName="ConfigFile"><![CDATA[ | <xsl:stylesheet | xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'> | | <xsl:import href="../server/tomcat-base-bindings.xsl" /> | | <xsl:output method="xml" /> | <xsl:param name="port"/> | <xsl:param name="jvmRoute"/> | | <xsl:variable name="portAJP" select="$port - 71"/> | <xsl:variable name="portHttps" select="$port + 8443-8080"/> | | </xsl:stylesheet> | ]]></xslt-config> | <xslt-param name="jvmRoute">LB1</xslt-param> | </delegate-config> | <binding port="8080"/> | </service-config> | </server> | | And Here is the imported stylesheet: | <xsl:stylesheet | xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'> | | <xsl:output method="xml" /> | | <xsl:template match="/"> | <xsl:apply-templates/> | </xsl:template> | | <xsl:template match = "[EMAIL PROTECTED]'MainEngine']"> | <Engine> | <xsl:attribute name="jvmRoute"><xsl:value-of select="$jvmRoute" /></xsl:attribute> | <xsl:apply-templates select="@*|node()"/> | </Engine> | </xsl:template> | | <xsl:template match = "Connector"> | <Connector> | <xsl:for-each select="@*"> | <xsl:choose> | <!-- fdu, turn dns lookups off --> | <xsl:when test="name() = 'enableLookups'"> | <xsl:attribute name="enableLookups">false</xsl:attribute> | </xsl:when> | <!-- end of add --> | <xsl:when test="(name() = 'port' and . = '8080')"> | <xsl:attribute name="port"><xsl:value-of select="$port" /></xsl:attribute> | </xsl:when> | <xsl:when test="(name() = 'port' and . = '8009')"> | <xsl:attribute name="port"><xsl:value-of select="$portAJP" /></xsl:attribute> | </xsl:when> | <xsl:when test="(name() = 'redirectPort')"> | <xsl:attribute name="redirectPort"><xsl:value-of select="$portHttps" /></xsl:attribute> | </xsl:when> | <xsl:when test="(name() = 'port' and . = '8443')"> | <xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute> | </xsl:when> | <xsl:otherwise> | <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute> | </xsl:otherwise> | </xsl:choose> | </xsl:for-each> | <xsl:apply-templates/> | </Connector> | </xsl:template> | | <xsl:template match="*|@*"> | <xsl:copy> | <xsl:apply-templates select="@*|node()"/> | </xsl:copy> | </xsl:template> | | </xsl:stylesheet> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859494#3859494 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859494 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
