ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/VPN/ipsec.xsl
Revision: 1007
Committed: 2008-05-19T00:43:51-07:00 (17 years, 1 month ago) by douglas
Content type: text/xml
File size: 655 byte(s)
Log Message:
Woo!

File Contents

# Content
1 <?xml version="1.0"?>
2 <!-- $Id$ -->
3 <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">
4 <xsl:output method="text"/>
5
6 <xsl:param name="host" required="yes" as="xs:string"/>
7
8 <xsl:template match="network"><xsl:apply-templates select="subnet/gateway[@internal=$host]/ipsec"/></xsl:template>
9
10 <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>
11 </xsl:text></xsl:template>
12 </xsl:stylesheet>

Properties

Name Value
svn:keywords Id