ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/VPN/recon.xsl
Revision: 986
Committed: 2008-01-18T13:38:52-08:00 (17 years, 5 months ago) by douglas
Content type: text/xml
File size: 910 byte(s)
Log Message:
Stuff for backhome, needs moar work...

File Contents

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