ILS Specification | ILS XML View Specification |
<?xml version='1.0' encoding='UTF-8'?> | |
<!DOCTYPE ils:view-type-spec SYSTEM '...\ils.dtd'> | |
<ils:view-type-spec xmlns:ils='http://www.roguewave.fr/ils/1.0'> | |
<ils:subscribe origin='true' type='Company'> | |
<ils:represent class="TreeR" name="root"> | |
<ils:attr-mapping type="string" name="label"> | |
<ils:path><ils:simple-path name="identifier"/></ils:path> | |
</ils:attr-mapping> | |
view CompanyTree: | </ils:represent> |
subscribe origin Company: | <ils:propagate rel-name="departements"/> |
represent TreeR root: | </ils:subscribe> |
string label = identifier; | |
propagate departements; | <ils:subscribe type='Department'> |
<ils:represent class="TreeItemR" name="item"> | |
subscribe Department: | <ils:ref-mapping class="TreeR" name="ownerTree"> |
represent TreeItemR item: | <ils:repres-path> |
Ref<TreeR> ownerTree = company->root; | <ils:path> |
string label = name; | <ils:simple-path name="company"/> |
</ils:path> | |
<ils:rp-name name="root"/> | |
</ils:repres-path> | |
</ils:ref-mapping> | |
<ils:attr-mapping type="string" name="label"> | |
<ils:path><ils:simple-path name="name"/></ils:path> | |
</ils:attr-mapping> | |
</ils:represent> | |
</ils:subscribe> | |
</ils:view-type-spec> |