1 |
<?xml version="1.0"?> |
2 |
<xsl:stylesheet version="2.0" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
3 |
<xsl:output method="text"/> |
4 |
|
5 |
<xsl:param name="host" required="yes" as="xs:string"/> |
6 |
|
7 |
<xsl:template match="network"><xsl:apply-templates select="subnet/gateway[@internal=$host]/ipsec"/></xsl:template> |
8 |
|
9 |
<xsl:template match="ipsec">gif<xsl:value-of select="fn:position() - 1"/><xsl:text> </xsl:text><xsl:value-of select="../@external"/><xsl:text> </xsl:text><xsl:value-of select="@peer"/><xsl:text> |
10 |
</xsl:text></xsl:template> |
11 |
</xsl:stylesheet> |