Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
- <xsl:variable name="network_objects" select="document('xml/network_objects.xml')/network_objects"/>
- <xsl:variable name="services" select="document('xml/services.xml')/services"/>
- <xsl:variable name="communities" select="document('xml/communities.xml')/communities"/>
- <xsl:template match="/fw_policies/fw_policie">
- <style>tr {vertical-align:baseline;} ol{margin-bottom:3px;}
- .c1{border-right:2px solid dimgray;}
- </style>
- <table cell_padding="3" style="font:menu;border-collapse:collapse;border:1px solid grey;" rules="rows" border="1" cellpadding="2">
- <xsl:for-each select="rule_adtr/rule_adtr">
- <tr>
- <xsl:if test="disabled='true'">
- <xsl:attribute name="style">color:dimgray;font-style:italic;</xsl:attribute>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="header_text"><td style=""><xsl:value-of select="header_text"/></td></xsl:when>
- <xsl:otherwise><td><small><xsl:value-of select="comments"/></small></td></xsl:otherwise></xsl:choose>
- <td><xsl:value-of select="Rule_Number"/></td>
- <td class="c1"><xsl:value-of select="src_adtr_translated/Class_Name"/></td>
- <td><xsl:value-of select="src_adtr/src_adtr/Name"/></td>
- <td class="c1"><xsl:value-of select="dst_adtr/dst_adtr/Name"/></td>
- <td><xsl:value-of select="src_adtr_translated/reference/Name"/></td>
- <td class="c1"><xsl:value-of select="dst_adtr_translated/reference/Name"/></td>
- <td><xsl:value-of select="services_adtr/services_adtr/Name"/></td>
- <td class="c1"><xsl:value-of select="services_adtr_translated/reference/Name"/></td>
- <td><xsl:value-of select="install/install/Name"/></td>
- </tr>
- </xsl:for-each>
- </table>
- <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>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement