I've looked at a couple of different stackoverflow answers regarding this issue, but as I am new to this transformation topic, I feel like I have made a obvious mistake I simply cannot see.
Here is my xml
<application xmlns:os="http://url..." name="test">
<catalog>
<cd>
<title> Empire Burlesque </title>
<artist> Bob Dylan </artist>
<country> USA </country>
<company> Columnbia </company>
</cd>
</catalog>
</application>
Here is my xsl
<?xml version="1.0" encoding="UFT-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:os="http://url...">
<xsl:output method="html" version="1.0" encoding=ISO-8859-1" indent="yes"/>
<xsl:template match="application">
<html>
<body>
<h2>
<th style="text-align:left">Title</th>
<th style="text-align:left">Artist</th>
</h2>
<!-- this doesn't work -->
<xsl:for-each select="os:catalog/cd">
<h2><xsl:value-of select="title"></h2>
<h2><xsl:value-of select="artist"></h2>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
The output is currently:
Title Artist
But I want the output to be:
Title Artist
Empire Burlesque Bob Dylan
I'm not sure what the error is. I tried setting the template as / but that didn't seem to work either