<?xml version="1.0"?>
<xsl:stylesheet 
    version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    >

  <xsl:output method="text"/>

  <xsl:template match="text()|@*"/>

  <xsl:template match="/">
    <!-- ophalen base CIDR voor de interlinks -->
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="Node/Service[link|public]/">
    <xsl:variable name="nodeID">
      <xsl:value-of select="../../@about"/>
    </xsl:variable>
    <xsl:variable name="linkID">
      <xsl:value-of select="@id"/>
    </xsl:variable>
    Link: <xsl:value-of select="$linkID"/> of Node <xsl:value-of select="$nodeID"/>
        Mastr: <xsl:value-of select="/Exodus/Link[@about=$linkID]/MasterNode/@id"/>
        Slave: <xsl:value-of select="/Exodus/Link[@about=$linkID]/SlaveNode/@id"/>
  </xsl:template>
  
</xsl:stylesheet>
