Hi Mohamed,Are you using xalan to generate output.could you please share the codeWe are using XSLT pt for our templates.TS version is 6.7.2 SP1.We are currently using urlgenerate , but this opens up a browser window so thinking of using xalan.could you please share the code.We tried to use xalan, but it is giving some error
Hello Patel, I am using the normal log4j API. The following is the statement which I am using to get the Logger object.Logger logger = Logger.getLogger(StatusInvoker.class.getName());The real problem is that my log4j.xml has not been read and instead some other log4j.xml is read during the execution of my program.As I said earlier running make_toolkit creates the zero byte file. But during execution nothing is written to the file appender I specified in my log4j.xml.So this means that my log4j.xml config setting has been overridden by some other log4j.xml.I think that disecting the build.xml may reveal some idea.Thanks & Regards,Mohamed
Hello Garima, Can you tell me what logic you are using to identify the preview vs generate page ? Also can you give me the xsl snippet which invokes the extension function ?Thanks & Regards,Mohamed
Hi Chris,I used the xalan command as you suggested.see the attached file.In my XSLT pt, i m calling a java method to check whether it is a preview or generate command(isPreviewMode method).This method is a static method,does not need any parameter.When I commenet the line to call java method, the xalan command works fine.The XSLT works fine when i click on preview or generate through UI.But the xalan process is failing because of a call to this method.Any idea how this can be resolved.
Hello Patel,I am using the normal log4j API. The following is the statement which I am using to get the Logger object.Logger logger = Logger.getLogger(StatusInvoker.class.getName());The real problem is that my log4j.xml has not been read and instead some other log4j.xml is read during the execution of my program.As I said earlier running make_toolkit creates the zero byte file. But during execution nothing is written to the file appender I specified in my log4j.xml.So this means that my log4j.xml config setting has been overridden by some other log4j.xml.I think that disecting the build.xml may reveal some idea.Thanks & Regards,Mohamed