ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/VPN/ipsec.xsl
Revision: 1005
Committed: 2008-05-18T05:34:06-07:00 (17 years, 1 month ago) by douglas
Content type: text/xml
File size: 641 byte(s)
Log Message:
Changes!

File Contents

# User Rev Content
1 douglas 1005 <?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>