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

File Contents

# Content
1 <?xml version="1.0"?>
2 <!-- $Id$ -->
3 <xsl:stylesheet version="2.0" 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="local" required="yes" as="xs:string"/>
7 <xsl:param name="remote" required="yes" as="xs:string"/>
8
9 <xsl:template match="network">(<xsl:apply-templates select="subnet[gateway[@external=$local]]"/><xsl:text> </xsl:text><xsl:apply-templates select="subnet[gateway[@external=$remote]]"/>)</xsl:template>
10
11 <xsl:template match="subnet[gateway[@external=$local]]">
12 <xsl:value-of select="host[@name=../gateway/@internal]/@address"/>
13 </xsl:template>
14
15 <xsl:template match="subnet[gateway[@external=$remote]]">
16 <xsl:value-of select="host[@name=../gateway/@internal]/@address"/><xsl:text> </xsl:text><xsl:value-of select="@address"/><xsl:text> </xsl:text><xsl:value-of select="@mask"/>
17 </xsl:template>
18 </xsl:stylesheet>

Properties

Name Value
svn:keywords Id