Re: [xml] xsltSetTransformErrorFunc doesn't work

On Wed, May 05, 2004 at 05:11:08PM -0500, Eric Haszlakiewicz wrote:
Specifically, it doesn't redirect output from things such as xsl:message
within a stylesheet.
Looking briefly at the code, it's fairly obvious why this happens:
which is called when an xsl:message element is encountered, calls
instead of xsltTransformError().
There are various other places that use xsltGenericError(), even though
they have a
xsltTransformContext and could call the transform error function.  So,
should all of
these places use xsltTransformError()?  I think that they should, so
transform error
function is actually useful.

  That make sense. The xsl:message might be handled a bit differently
because they are really part of the framework set by XSLT-1.0 while the
others are really implementation/compilation/runtime issues.
Ideally the libxslt error reporting should rely on the new structured
error handling of libxml2, but the approach you suggest is a good first
step to get there.
  Would you mind building a patch for this (use diff -c or diff -p please),



Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]