On Mon, 17 Nov 2003 19:42:52 +0800 "shivakumar" <[EMAIL PROTECTED]> wrote:
> 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/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'Result > SetHeaderRow']"/> <xsl:apply-templates > select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'Result > SetRow']"/> <xsl:apply-templates > select="/document/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'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/[EMAIL PROTECTED]'BodyPage']/table[1]/[EMAIL PROTECTED]'Result > SetHeaderRow']"/> > > <xsl:apply-templates > select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'Result > SetRow']"/> > > <xsl:apply-templates > select="/document/[EMAIL PROTECTED]'BodyPage']/table[2]/[EMAIL PROTECTED]'Result > SetRow_Empty']"/> > > </source:write> > > > > > > </xsl:template> > > </xsl:stylesheet> > > > > > > what's error in this code, please help me if any one known. > > > > Thanks, > > Shivakumar I'm not sure, but have you add the NameSpace xmlns:source="http://apache.org/cocoon/source/1.0" to your stylesheet,like your first example? Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
