Is it possible to display a list in columns of a table ?

libis posted this 05 March 2018

I need to produce a kind of agenda for a group of persons with : - 8 columns : 1 with the names of persons + 7 for the days of a week. - 1 line for each person. In each cell (for one person and one day) : - Nothing if the person has no vacation - as many lines as the number of vacations with "time from", "time to" and "service name" for each vacation. Is it possible to get this with this XML schema i? <?xml version="1.0"?> <xs:schema elementFormDefault="qualified" xmlns:xs=""> <xs:element name="ArrayOfPlanning" nillable="true" type="ArrayOfPlanning" /> <xs:complexType name="ArrayOfPlanning"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="Planning" nillable="true" type="Planning" /> </xs:sequence> </xs:complexType> <xs:complexType name="Planning"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Days" type="ArrayOfDay" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfDay"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="Day" nillable="true" type="Day" /> </xs:sequence> </xs:complexType> <xs:complexType name="Day"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="Date" type="xs:dateTime" /> <xs:element minOccurs="0" maxOccurs="1" name="Vacations" type="ArrayOfVacation" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfVacation"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="Vacation" nillable="true" type="Vacation" /> </xs:sequence> </xs:complexType> <xs:complexType name="Vacation"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="TimeFrom" type="xs:dateTime" /> <xs:element minOccurs="1" maxOccurs="1" name="TimeTo" type="xs:dateTime" /> <xs:element minOccurs="0" maxOccurs="1" name="Service" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>

Last edited 05 March 2018

4 Posts
4 Points
Order By: Standard | Newest | Votes
libis posted this 06 March 2018

Forget my question. I've found the solution using Xpath.

4 Posts
4 Points
admin posted this 06 March 2018


It is possible to wrap a single cell in a row with a LIST tagging element and set Rendering Mode to Table Cell. This will render items in the collection (the LIST is bound to) horizontally.

But I'm not sure if this is actually needed. Could you please create a template with the schema and possibly test data included and send it to us. Also, please put inside a sample of such table and we will try to show you how to do it.


Jure Leskovec

12 Posts
21 Points

Our 42581 members have posted 281 times in 84 discussions