blob: bf33e49540fa64b804a907c6b21c48aa92c8657c [file] [log] [blame]
Ilya Moiseenko18c8a132013-10-24 01:52:52 -07001<xsl:stylesheet version = '2.0'
2 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
3
4<xsl:template match="/ndnd">
5<html><body>
6<xsl:apply-templates select="forwarding/fentry" />
7</body></html>
8</xsl:template>
9
10<xsl:template match="fentry">
11<xsl:apply-templates select="dest/faceid" />
12<xsl:text> </xsl:text>
13<xsl:value-of select="prefix"/>
14<br/>
15</xsl:template>
16
17<xsl:template match="faceid">
18<xsl:variable name="id"><xsl:value-of select="." /></xsl:variable>
19<b>face: <xsl:copy-of select="$id" />
20
21<xsl:choose>
22 <xsl:when test="count(//face/ip[../faceid=$id]) &gt; 0"> (<xsl:value-of select="//face/ip[../faceid=$id]" />)
23 </xsl:when>
24 <xsl:otherwise> (app)</xsl:otherwise>
25</xsl:choose></b>
26</xsl:template>
27
28</xsl:stylesheet>