Advertisement
rg443

Checkpoint Firewall NAT to HTML

Jun 23rd, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.04 KB | None | 0 0
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  2.     <xsl:output method="xml"/>
  3.    
  4.  
  5. <xsl:variable name="network_objects" select="document('xml/network_objects.xml')/network_objects"/>
  6. <xsl:variable name="services" select="document('xml/services.xml')/services"/>
  7. <xsl:variable name="communities" select="document('xml/communities.xml')/communities"/>
  8.  
  9. <xsl:template match="/fw_policies/fw_policie">
  10. <style>tr {vertical-align:baseline;} ol{margin-bottom:3px;}
  11. .c1{border-right:2px solid dimgray;}
  12. </style>
  13. <table cell_padding="3" style="font:menu;border-collapse:collapse;border:1px solid grey;" rules="rows" border="1" cellpadding="2">
  14. <xsl:for-each select="rule_adtr/rule_adtr">
  15. <tr>
  16. <xsl:if test="disabled='true'">
  17. <xsl:attribute name="style">color:dimgray;font-style:italic;</xsl:attribute>
  18. </xsl:if>
  19.  
  20. <xsl:choose>
  21. <xsl:when test="header_text"><td style=""><xsl:value-of select="header_text"/></td></xsl:when>
  22. <xsl:otherwise><td><small><xsl:value-of select="comments"/></small></td></xsl:otherwise></xsl:choose>
  23.  
  24. <td><xsl:value-of select="Rule_Number"/></td>
  25.  
  26. <td class="c1"><xsl:value-of select="src_adtr_translated/Class_Name"/></td>
  27.  
  28. <td><xsl:value-of select="src_adtr/src_adtr/Name"/></td>
  29. <td class="c1"><xsl:value-of select="dst_adtr/dst_adtr/Name"/></td>
  30.  
  31. <td><xsl:value-of select="src_adtr_translated/reference/Name"/></td>
  32. <td class="c1"><xsl:value-of select="dst_adtr_translated/reference/Name"/></td>
  33.  
  34. <td><xsl:value-of select="services_adtr/services_adtr/Name"/></td>
  35. <td class="c1"><xsl:value-of select="services_adtr_translated/reference/Name"/></td>
  36.  
  37. <td><xsl:value-of select="install/install/Name"/></td>
  38.  
  39.  
  40.  
  41.  
  42.  
  43. </tr>
  44. </xsl:for-each>
  45. </table>
  46.  
  47.  
  48. <div style="font:menu;margin-top:100px;border-top:1px solid dimgray;color:dimgray;">Copyright (c) 2011 R. G., Ing. - Advanceded Stylesheets for <a target="_blank" style="text-decoration:underline;color:dimgray;" href="http://www.google.at/search?q=sk30765">Checkpoint Web Visualization Tool (sk30765)</a>.</div>
  49.  
  50. </xsl:template>
  51.  
  52.  
  53. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement