I'm doing my school project that had us make an xsl transformation where we use for-each but i cant find mistake i made in it.
I already tried changing name of dtb_Items, changing xsl:template match="/"
to match "dtb_Items/Item/"
tried more different approach by changing the way in different manner which was wrong in elementary things.
<dtb_Items>
<Item id="1">
<name>Iron Gloves</name>
<rarity>Uncommon</rarity>
<stats>
<s_str type="boost">7</s_str>
<s_dex type="nerf">1</s_dex>
<s_con type="none"></s_con>
<s_int type="none"></s_int>
<s_wis type="none"></s_wis>
<s_cha type="none"></s_cha>
</stats>
<group>Equip - Gloves</group>
</Item>
</dtb_Items>
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Items design</h2>
<table border="1">
<tr bgcolor="">
<th>Name</th>
<th>Rarity</th>
<th>strenght</th>
<th>group</th>
</tr>
<xsl:for-each select="dtb_Items/Item">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="rarity"/></td>
<td><xsl:value-of select="stats/s_str"/></td>
<td><xsl:value-of select="group"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I expect to be able to see every line that is in xml instead of none