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

    Related Documentation

     

    break-lines() Function (jcs and slax Namespaces)

    Namespaces

    http://xml.juniper.net/junos/commit-scripts/1.0http://xml.libslax.org/slax

    SLAX Syntax

    var $lines = prefix:break-lines(expression);

    XSLT Syntax

    <xsl:variable name="lines" select="prefix:break-lines(expression)"/>

    Release Information

    Function introduced in Junos OS Release 7.6

    Support for the slax namespace http://xml.libslax.org/slax added in Junos OS Release 12.2.

    Description

    Break a simple element into multiple elements, delimited by newlines. This is especially useful for large output elements such as those returned by the show pfe command.

    The prefix associated with the namespace URI should be defined in the prefix-to-namespace mapping in the style sheet.

    Parameters

    expression
    —

    Original output.

    Return Value

    $lines
    —

    Output broken up into lines.

    Usage Examples

    var $lines = jcs:break-lines($output);
    for-each ($lines) {
        ...
    }
     

    Related Documentation

     

    Published: 2013-03-05