This is the XML file:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="LabXSLT.xslt"?>
<orders>
<order>
<customerid>2364</customerid>
<status>pending</status>
<item instock="Y" itemid="SD93">
<name>Flying By Roller Skates</name>
<price>25.00</price>
<qty>25</qty>
</item>
<item instock="N" itemid="B12">
<name>Bounce-o Ball</name>
<price>.35</price>
<qty>150</qty>
</item>
</order>
<order>
<customerid>5268</customerid>
<status>complete</status>
<item instock="Y" itemid="Q52">
<name>Crash N Burn Skis</name>
<price>20</price>
<qty>10</qty>
</item>
</order>
</orders>
XSLT file:
<xsl:for-each select="orders/order">
<p>Customer Number:</p>
<xsl:value-of select="customerid" />
<p>Name:</p>
<xsl:value-of select="name" />
</xsl:for-each>
The XSLT file is suppose to get custeomrID and name and display it. It gets the customerID but not the name. Its only left blank and it looks like it can only reach two of the name elements. I think one of the problems is that there are 2 elements in the element. No idea how to go about this. I cannot change the XML file also.