Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.  
  5. <xsl:output indent="yes"/>
  6. <xsl:param name="port" />
  7. <xsl:param name="port2" />
  8.  
  9. <xsl:template match="@*|node()">
  10. <xsl:copy>
  11. <xsl:apply-templates select="@*|node()"/>
  12. </xsl:copy>
  13. </xsl:template>
  14.  
  15. <!-- We don't want wars to get unpacked. -->
  16. <xsl:template match="@port[parent::Server]">
  17. <xsl:attribute name="port">
  18. <xsl:value-of select="$port2"/>
  19. </xsl:attribute>
  20. </xsl:template>
  21.  
  22. <xsl:template match="Connector[@protocol='HTTP/1.1']">
  23. <xsl:copy>
  24. <xsl:apply-templates select="@*|node()"/>
  25. <xsl:attribute name="port"><xsl:value-of select="$port"/></xsl:attribute>
  26. <xsl:attribute name="proxyName">www.make-online.nl</xsl:attribute>
  27. <xsl:attribute name="proxyPort">443</xsl:attribute>
  28. <xsl:attribute name="scheme">https</xsl:attribute>
  29. </xsl:copy>
  30. </xsl:template>
  31.  
  32. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement