Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output indent="yes"/>
- <xsl:param name="port" />
- <xsl:param name="port2" />
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- <!-- We don't want wars to get unpacked. -->
- <xsl:template match="@port[parent::Server]">
- <xsl:attribute name="port">
- <xsl:value-of select="$port2"/>
- </xsl:attribute>
- </xsl:template>
- <xsl:template match="Connector[@protocol='HTTP/1.1']">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- <xsl:attribute name="port"><xsl:value-of select="$port"/></xsl:attribute>
- <xsl:attribute name="proxyName">www.make-online.nl</xsl:attribute>
- <xsl:attribute name="proxyPort">443</xsl:attribute>
- <xsl:attribute name="scheme">https</xsl:attribute>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement