I have this XML document:
</Items>
<Item>
<Id>1</Id>
<Weekday>4</Weekday>
<WeekdayName>Wednesday</WeekdayName>
<Hour0>12</Hour0>
<Hour1>5</Hour1>
<Hour2>9</Hour2>
</Item>
<Item>
<Id>1</Id>
<Weekday>5</Weekday>
<WeekdayName>Thursday</WeekdayName>
<Hour0>10</Hour0>
<Hour1>8</Hour1>
<Hour2>15</Hour2>
</Item>
</Items>
and I need to convert it into the following XML document using XSLT:
<report>
<categories>
<category label="Hour1"/>
<category label="Hour2"/>
<category label="Hour3"/>
</categories>
<dataset day="Wednesday">
<set value="12"/>
<set value="5"/>
<set value="9"/>
</dataset>
<dataset day="Thursday">
<set value="10"/>
<set value="8"/>
<set value="15"/>
</dataset>
</report>
I am able to get node values but not able to get node captions. How can I perform this conversion? I'm new to XSLT.