diff -r 000000000000 -r 76005e62091d samples/union.ysl2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/union.ysl2 Mon Jul 11 23:15:28 2016 +0200 @@ -0,0 +1,19 @@ +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"; + } +}