I'm making product sheets for our products. I have product data in xml like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<product>
<name>Item A</name>
<properties>
<property>
<type>Color</type>
<value>Red</value>
</property>
<property>
<type>Size</type>
<value>50x50x50 mm</value>
</property>
</properties>
</product>
<product>
<name>Item B</name>
<properties>
<property>
<type>Color</type>
<value>Green</value>
</property>
<property>
<type>Size</type>
<value>50x50x50 mm</value>
</property>
</properties>
</product>
<product>
<name>Item C</name>
<properties>
<property>
<type>Color</type>
<value>Brown</value>
</property>
<property>
<type>Size</type>
<value>50x50x50 mm</value>
</property>
<property>
<type>Inputs</type>
<value>3</value>
</property>
</properties>
</product>
</root>
I would like to present the properties in a table. Different products have different properties and different number of properties. Can I make the number of rows dynamic with conditions? I would like to populate the table with properties: First column with type and second with value.
/Fredrik