[xml] xsltproc does not set error code when parsinf faulty xsl
- From: Stefan Kost <kost imn htwk-leipzig de>
- To: xml gnome org
- Subject: [xml] xsltproc does not set error code when parsinf faulty xsl
- Date: Wed, 21 Jan 2004 18:50:43 +0100
hi Daniel,
is it intensional that xsltpro not returns an error incase of invalid xslt files.
I've inserted an mistyped elements (xsl:ooutput) and run xsltpro as below:
xsltproc typo.xsl && echo $?
Parsing stylesheet typo.xsl took 6 ms
compilation error: file typo.xsl line 19 element ooutput
xsltStylePreCompute: unknown xsl:ooutput
compilation error: file typo.xsl line 19 element ooutput
xsltParseStylesheetTop: ignoring unknown ooutput element
0
xsltStylePreCompute: only increments the warning-counter
xsltParseStylesheetTop: says it is an error, but increments the warning counter
xsltTransformError(NULL, style, cur,
"xsltParseStylesheetTop: ignoring unknown %s element\n",
cur->name);
if (style != NULL) style->warnings++;
}
The rational I would like to treat such warnings as errors is, that I use
xsltpro as part of my 'make test' target to see if all stylesheets I package
compile.
Ciao
Stefan
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166
| /// 04277 Leipzig 04251 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 2253538 +49341 30766101
| \__/ EMail st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
| WWW www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]