1 |
douglas |
986 |
<?xml version="1.0"?> |
2 |
douglas |
1007 |
<!-- $Id$ --> |
3 |
douglas |
986 |
<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> |