Subject: Re: [xsl] xsltproc [Error Log] From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx> Date: Mon, 27 Dec 2010 08:53:09 +0100 |
Pankaj, > I want to dump the errors in log file in "xsltproc". Errors are sent to standard error output stream. You may redirict it (under Linux or cygwin) as shown below. This is not XSLT specific. $ cat mismatched-tag.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output omit-xml-declaration="yes" /> <xsl:template match="/"> <xsl:template> </xsl:stylesheet> $ $ xsltproc mismatched-tag.xsl 2>err $ $ cat err mismatched-tag.xsl:9: parser error : Opening and ending tag mismatch: template line 7 and stylesheet </xsl:stylesheet> ^ mismatched-tag.xsl:10: parser error : Premature end of data in tag template line 6 ^ mismatched-tag.xsl:10: parser error : Premature end of data in tag stylesheet line 1 ^ cannot parse mismatched-tag.xsl $ Mit besten Gruessen / Best wishes, Hermann Stamm-Wilbrandt Developer, XML Compiler, L3 Fixpack team lead WebSphere DataPower SOA Appliances ---------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 From: pankaj.c@xxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Date: 12/27/2010 08:41 AM Subject: Re: [xsl] xsltproc [Error Log] >most likely this is not a valid XML file -- try to open the file in >firefox and see if it displays any errors Thanks Andriy for looking. I think you have not understood my question (Error message was just to show kind of errors I am trying to dump). I want to dump the errors in log file in "xsltproc". Hope I made myself clear. Best, Pankaj
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsltproc [Error Log], Andriy Gerasika | Thread | Re: [xsl] xsltproc [Error Log], pankaj . c |
Re: [xsl] xsltproc [Error Log], Andriy Gerasika | Date | Re: [xsl] xsltproc [Error Log], pankaj . c |
Month |