Do you have to put the tags within the
in order for the tags to show up in the browser?
So in the xsl you would have something like the following:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:element name="root">
<xsl:text><![CDATA[<root> ]]></xsl:text>
<xsl:for-each select="catalog/cd">
<xsl:element name="singer">
<xsl:text><![CDATA[<singer>]]></xsl:text><xsl:value-of select="artist" /><xsl:text><![CDATA[</singer>]]></xsl:text>
</xsl:element>
<br />
</xsl:for-each>
<xsl:text><![CDATA[</root>]]></xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
I'm new to xslt too.
Thanks,