HI All,

 

Using SourceWritingTransformer I am able to generate the xml file. But it is generation data without open/close tags.

 

The output XML file is.

 

<?xml version="1.0" encoding="utf-8"?>

<root>

      MERCHANT_ID 11

      TERMINAL_ID 22

      TXN_DATE  10/11/2003

<root>

 

 

here is the source of xsl

 

<?xml version="1.0"?>

 

<page xmlns:source="http://apache.org/cocoon/source/1.0"

      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"

      xmlns:xsp="http://apache.org/xsp">

 

      <!-- <title>SourceWritingTransformer Test Page 1</title> -->

      <content>

            <source:write src="">

            <root>

                  <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow']"/>

            </root>

            </source:write>

      </content>

</page>

 

my question is, I want to add tags to the output xml file. Help me if anyone knows.

 

Thanks in advance,

 

Shivakumar

 

 

                                                           

Reply via email to