samples/union.ysl2
author Volker Birk <vb@pep-project.org>
Mon, 04 Nov 2019 11:38:34 +0100
changeset 40 432ab62b2537
parent 0 76005e62091d
permissions -rw-r--r--
date
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";
    }
}