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 Mon, 17 Nov 2003 11:42:52 GMT
Hi All,

 

I am using SourceWritingTransformer for generating output to xml, 

If I use like this it is working file.

 

 

<?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">

 

      <title>SourceWritingTransformer Test Page 1</title>

      <content>

 

            <source:write src="result1.xml">

            <root>

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

            </root>

            </source:write>

      </content>

</page>

 

 

If I use xsl:stylesheet, SourceWritingTransformer is not generation the
output file.

 

 

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

                 xmlns:lxslt="http://xml.apache.org/xslt"

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

 

<xsl:template match="xsp:page">

 

            <source:write src="result1.xml">

 

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

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

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

            </source:write>

 

 

</xsl:template>

</xsl:stylesheet>

 

 

what's error in this code, please help me if any one known.

 

Thanks,

Shivakumar

 


Mime
View raw message