Hello all. I am studying XSLT in school and need some help.
Display the following: Software titles for each operating system sorted by category. Sorting is not the problem. I am having an issue with displaying software titles for each operating system. Here is the XML and the XSLT.
<?xml version="1.0"?><!-- Note: For many of the wonders, the experts do not agree on precise dates or construction dimensions. In these cases, I chose a year or dimension in the middle of the range so all attributes could be numeric. --><software_inventory><software xmlns:xsi="Software.xsd"><title>Adobe Photoshop</title><vendor>Adobe</vendor><category>Graphics</category><support_platforms><Platform>Windows 7</Platform><Platform>Windows 8</Platform><Platform>Windows 8.1</Platform></support_platforms><Approved_Versions><Version Hardware_Requirements="4GB Ram 2GB Hard Drive" Software_Requiremnts="32/64 bit" Price="399">CS 5.5</Version></Approved_Versions></software><software><title>Winzip</title><vendor>Winzip International</vendor><category>Utility</category><support_platforms><platform>Windows Vista</platform><platform>Windows 7</platform><platform>Windows 8</platform><platform>Windows 8.1</platform></support_platforms><Approved_Versions><Version Hardware_Requirements="2GB Ram 250MB Hard Drive" Software_Requiremnts="32/64 bit" Price="29.99">19</Version></Approved_Versions></software>
There are more titles in the XML, but I didn't include them.
Here is the XSLT
<h1>Software Titles for each operating system, sorted by category</h1><table border="1"><tr><th>Software Title</th><th>Operating System</th><th>Category</th></tr><xsl:for-each select="software_inventory/software"><xsl:sort select="support_platforms/platform"/><xsl:sort select="category"/><tr><td><xsl:value-of select="title"/></td><td><xsl:for-each select="support_platforms/platform"><xsl:value-of select="platform"/><xsl:text> </xsl:text></xsl:for-each></td><td><xsl:value-of select="category"/></td></tr></xsl:for-each></table>
Here is a screen shot of the output. What I would like is for each Platform / operating system to show in the same cell, so the adjacent cells will grow taller to accommodate.
What am I doing wrong?