Re: [xslt] format-number
- From: Igor Zlatkovic <igor zlatkovic com>
- To: xslt gnome org
- Subject: Re: [xslt] format-number
- Date: Wed, 19 Feb 2003 17:58:31 +0100 (CET)
On Wed, 19 Feb 2003, Daniel Veillard wrote:
> http://www.w3.org/TR/xslt#function-format-number
>
> "It is an error if the stylesheet does not contain a declaration of the
> decimal-format with the specified expanded-name."
>
> this should turn into a compile-time error IMHO,
Thanks, I overcame the laziness and have read that document now. I have
fixed that by adding
if (formatValues == NULL) {
XP_ERROR(XPATH_EXPR_ERROR);
formatValues = sheet->decimalFormat;
}
to xsltFormatNumberFunction just before it calls xsltFormatNumberConversion.
This results in a compile error and nothing is output. Is there a better
error code than XPATH_EXPR_ERROR to use in this case?
Whatever, this will avoid the segfault, now I must find why the declaration
in the imported stylesheet isn't recognised.
Ciao,
Igor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]