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
element
within a stylesheet.
Looking briefly at the code, it's fairly obvious why this happens:
xsltMessage(),
which is called when an xsl:message element is encountered, calls
xsltGenericError()
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),

    thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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