samples/gen_addr_html.ysl2
author Volker Birk <vb@pep-project.org>
Fri, 25 Jan 2019 23:31:57 +0100
changeset 25 cb4a7f8b230d
parent 0 76005e62091d
permissions -rw-r--r--
...
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
25
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
     3
estylesheet {
0
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";
25
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
     6
        body table style="border-style=solid;"
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
     7
            apply "address";
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
    template "address" tr {
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
        td value "name";
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
        td value "street";
25
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    12
        td value "village";
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    13
    }
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    14
    template "address[name='Schmidt']" tr {
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    15
        td value "name";
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    16
        td value "street";
Volker Birk <vb@pep-project.org>
parents: 0
diff changeset
    17
        td value "village";
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    18
    }
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    19
}