Re: [xslt] Parsing an incorrect xml string doesn't lead to an error
- From: Nick Wellnhofer <wellnhofer aevum de>
- To: xslt gnome org
- Subject: Re: [xslt] Parsing an incorrect xml string doesn't lead to an error
- Date: Thu, 13 Feb 2014 15:01:39 +0100
On 13/02/2014 14:24, Charles G. wrote:
I thought that if the type were different from toto in the xml, xsltapplystylesheet would exit with an error,
but it doesn't.
If you want to check if a transform was terminated, you can call
'xsltApplyStylesheetUser' with your own 'xsltTransformContextPtr ctxt' and
then test if 'ctxt->state == XSLT_STATE_STOPPED'.
I checked the source (transform.c) and it seems that if xslt encounter a terminate=yes, it just skip the
element.
No, the transformation should be terminated. If you see that the
transformation continues, please provide a self-contained test case.
Nick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]