Connecting extracted values of sent/recv Interest/Data with status window

Change-Id: I3d182984776371e97a39ec8edcbb3b335f2a9f55
diff --git a/osx/Resources/status.xslt b/osx/Resources/status.xslt
index 4625a82..d64ea59 100644
--- a/osx/Resources/status.xslt
+++ b/osx/Resources/status.xslt
@@ -1,28 +1,20 @@
 <xsl:stylesheet version = '1.0'
                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
 
-<xsl:template match="/ndnd">
-<html><body>
-<xsl:apply-templates select="forwarding/fentry" />
-</body></html>
+<xsl:template match="/">
+<stats>
+  <data>
+    <in><xsl:value-of select="sum(/ndnd/faces/face/meters/datain/total)" /></in>
+    <out><xsl:value-of select="sum(/ndnd/faces/face/meters/dataout/total)" /></out>
+    <!-- <in><xsl:value-of select="sum(/ndnd/faces/face/meters/datain/persec)" /></in> -->
+    <!-- <out><xsl:value-of select="sum(/ndnd/faces/face/meters/dataout/persec)" /></out> -->
+  </data>
+  <interests>
+    <in><xsl:value-of select="sum(/ndnd/faces/face/meters/intrin/total)" /></in>
+    <out><xsl:value-of select="sum(/ndnd/faces/face/meters/introut/total)" /></out>
+    <!-- <in><xsl:value-of select="sum(/ndnd/faces/face/meters/intrin/persec)" /></in> -->
+    <!-- <out><xsl:value-of select="sum(/ndnd/faces/face/meters/introut/persec)" /></out> -->
+  </interests>
+</stats>
 </xsl:template>
-
-<xsl:template match="fentry">
-<xsl:apply-templates select="dest/faceid" />
-<xsl:text> </xsl:text>
-<xsl:value-of select="prefix"/>
-<br/>
-</xsl:template>
-
-<xsl:template match="faceid">
-<xsl:variable name="id"><xsl:value-of select="." /></xsl:variable>
-<b>face: <xsl:copy-of select="$id" />
-
-<xsl:choose>
-  <xsl:when test="count(//face/ip[../faceid=$id]) &gt; 0"> (<xsl:value-of select="//face/ip[../faceid=$id]" />)
-  </xsl:when>
-  <xsl:otherwise> (app)</xsl:otherwise>
-</xsl:choose></b>
-</xsl:template>
-
 </xsl:stylesheet>