I'm a bit stuck with a views problem. I would like to have a special view on nodes with nodereference fields.

The nodetype has two optional nodereferences, which I would like to have in the rows and the columns. A cell would then contain a string if there exists a node with a reference to the nodereference in the column and the one in the row. It looks a bit like the views crosstab module, but with a dynamic number of columns. I do not know views modules which allow arbitrary data input, except for the security flawed Q-Views module.

Example:
an event node type has references to both a period node type (the period the event is organized) and a location node type (the location where events can be organized)

possible output would be:
\ spring summer fall winter
beach yes yes yes no
mountains yes no yes yes
forrest yes yes yes yes