1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:d="urn:ietf:params:xml:ns:netconf:base:1.0"
5 xmlns:n="urn:ietf:params:xml:ns:netmod:notification"
6 xmlns:ood="http://org/openroadm/device"
7 xmlns:ocp="http://openconfig.net/yang/platform" >
9 <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
11 <xsl:template match="d:data/ocp:components">
12 <xsl:element name="config" namespace="urn:ietf:params:xml:ns:netconf:base:1.0">
13 <xsl:element name="components" namespace="http://openconfig.net/yang/platform">
14 <xsl:for-each select="*">
15 <xsl:apply-templates select="." />
21 <xsl:template match="*">
22 <xsl:if test="name(.) != 'state'">
24 <xsl:for-each select="@*"><xsl:copy-of select="."></xsl:copy-of></xsl:for-each>
26 <xsl:when test="name(.) = 'state'"></xsl:when>
27 <xsl:otherwise><xsl:apply-templates select="node()" /></xsl:otherwise>
33 <xsl:template match="d:data | n:netconf">
34 <xsl:apply-templates />