samples/union.ysl2
author Volker Birk <vb@pep-project.org>
Thu, 08 Apr 2021 21:11:30 +0200
changeset 77 5b23278ed81f
parent 0 76005e62091d
permissions -rw-r--r--
updating documentation
include yslt.yml2

estylesheet {
    template "/list" cities
        apply "address[name='Meier']" with "me", ".";

    template "address" {
        param "me";

        call "f" with "addresses", "$me/address[name='Schmid'] | .";
    }

    function "f" {
        param "addresses";

        foreach "$addresses"
            city value "city";
    }
}