|
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=""> <root> <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']"/> <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow']"/> <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']"/> </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="">
<xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'ResultSetHeaderRow']"/> <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow']"/> <xsl:apply-templates select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'ResultSetRow_Empty']"/> </source:write>
</xsl:template> </xsl:stylesheet>
what’s error in this code, please help me if any one known.
Thanks, Shivakumar
|
- Re: xml file generation shivakumar
- Re: xml file generation Simon Mieth
- xml file generation shivakumar
