samples/gen_addr_html.ysl2
author Claudio Luck <claudio.luck@pep.foundation>
Tue, 04 Sep 2018 16:48:59 +0200
changeset 52 b4a9a3122abb
parent 0 76005e62091d
child 25 cb4a7f8b230d
permissions -rw-r--r--
move python code into new package dir
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     1
include yslt.yml2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     2
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
stylesheet {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
    template "/list" html {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
        head title "address list";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
        body table style="border-style=solid;" apply "address";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
    template "address" tr {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
        td value "name";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
        td value "street";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
        td value "city";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
}