Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    copy-node

    Syntax

    copy-node;
    copy-node {
        /* body */
    }

    Release Information

    Statement introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

    Description

    Copy the current node including namespace nodes to the result tree, but do not copy any attribute or child nodes. The optional body is a block of statements that emit additional nodes inside that copy.

    SLAX Example

    copy-node {
        <that> "one";
    }

    XSLT Equivalent

    <xsl:copy>
        <that>
            <xsl:value-of select="one"/>
        </that>
    </xsl:copy>
     

    Related Documentation

     

    Published: 2013-03-05