XML gurus pls. help

Hi
I am an oracle developer and wish to generate XML using stylesheets and not ||'<'|| etc e.g. I have a table called channel with channel_name and channel_code. I want the data from my table to appear in the tags.

My current stylesheet looks like this

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xdb="http://xmlns.oracle.com/xdb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET">
<xsl:for-each select="ROW">
<xsl:value-of select="CHANNEL_CODE"/>
<xsl:value-of select="CHANNEL_NAME"/>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

and is getting populated by
select channel_code, channel_name from channel
the output is
<?xml version = '1.0'>
NVL01 NL TS 01

but I want
<CHANNEL_CODE>NVL01</CHANNEL_CODE>
<CHANNEL_NAME>NL TS 01</CHANNEL_NAME>

Any ideas how the stylesheet can be changed?
[1326 byte] By [rajat_thakur] at [2007-11-19 3:51:18]
# 1 Re: XML gurus pls. help
xsl:copy-of instead of xsl:value-of
If you want more details see the topxml post I made in your thread.
jkmyoung at 2007-11-10 3:27:44 >