Commit d5850e36 authored by Spyros Kanellopoulos's avatar Spyros Kanellopoulos
Browse files

Update CT_transform.xsl

parent 2aad562c
Loading
Loading
Loading
Loading
+32 −20
Original line number Diff line number Diff line
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <interfaces>
            <xsl:for-each select="nc:data/if:interfaces/if:interface"
    <xsl:template match="nc:data/if:interfaces/if:interface"
        xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
        xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces"
        xmlns:mrl="urn:ietf:params:xml:ns:yang:ietf-microwave-radio-link">
        <interfaces>
            <interface>
                <xsl:copy-of select="mrl:carrier-id" />
                <xsl:copy-of select="if:name" />
                <xsl:copy-of select="if:type" />
                <xsl:copy-of select="mrl:tx-enabled" />
                <xsl:copy-of select="mrl:tx-frequency" />
                <xsl:copy-of select="mrl:rx-frequency" />
                <xsl:copy-of select="mrl:tx-oper-status" />
                <xsl:copy-of select="mrl:duplex-distance" />
                <xsl:copy-of select="mrl:channel-separation" />
                    <!-- get what is inside a child attribute (ex: mrl:maximum-nominal-power is inside mrl:rtpc -->
                <xsl:copy-of select="mrl:actual-transmitted-level" />
                <xsl:copy-of select="mrl:actual-received-level" />
                <xsl:copy-of select="mrl:actual-snir" />
                <xsl:copy-of select="mrl:actual-rx-frequency" />
                <!-- get what is inside a child attribute (ex: mrl:maximum-nominal-power is inside
                mrl:rtpc -->
                <xsl:copy-of select="mrl:rtpc/mrl:maximum-nominal-power" />
                    <xsl:copy-of select="mrl:atpc/mrl:maximum-nominal-power" />
                <xsl:copy-of select="mrl:single/mrl:selected-cm" />
                <xsl:copy-of select="mrl:adaptive/mrl:selected-min-acm" />
                <xsl:copy-of select="mrl:adaptive/mrl:selected-max-acm" />
                <xsl:copy-of select="mrl:atpc/mrl:atpc-lower-threshold" />
                <xsl:copy-of select="mrl:atpc/mrl:atpc-upper-threshold" />
                <xsl:copy-of select="mrl:atpc/mrl:maximum-nominal-power" />
                <xsl:copy-of select="mrl:atpc/mrl:atpc-mode" />
                <xsl:copy-of select="mrl:capabilities/mrl:available-max-acm" />
                <xsl:copy-of select="mrl:capabilities/mrl:available-min-acm" />
                <xsl:copy-of select="mrl:capabilities/mrl:actual-tx-cm" />
            </interface>
            </xsl:for-each>
        </interfaces>
    </xsl:template>
</xsl:stylesheet>