cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shivakumar" <a.shivaku...@welcome-rt.com>
Subject xml file generation
Date Tue, 18 Nov 2003 08:40:04 GMT
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="result1.xml">

            <root>

                  <xsl:apply-templates
select="/document/section[@class='BodyPage']/table[2]/row[@class='Result
SetRow']"/>

            </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

 

 

                                                            


Mime
View raw message