[GeoNetwork-users] Telling SAXON to keep quiet

hello lists,

now that we use Saxon for XSLT, it's quite common to see messages about
"Recoverable errors" in GeoNetwork's console. Although these may not
indicate an ideal state of affairs, it appears they also do not mean that
things actually go wrong.

Because this clutters my console I'd like to suppress these messages. Does
anyone know how you can tell Saxon to be more quiet ?

thanks !

Kind regards
Heikki Doeleman

Hi Heikki,

In jeeves/src/jeeves/utils/Xml.java, try adding:

import net.sf.saxon.Configuration;

and then:

transFact.setAttribute(FeatureKeys.RECOVERY_POLICY,Configuration.RECOVER_SILENTLY);

to method transform, and something similar to method transformFOP

I'm testing to make sure we don't lose other useful info etc but it looks like this does the job.

Cheers,
Simon

heikki wrote:

hello lists,

now that we use Saxon for XSLT, it's quite common to see messages about "Recoverable errors" in GeoNetwork's console. Although these may not indicate an ideal state of affairs, it appears they also do not mean that things actually go wrong.

Because this clutters my console I'd like to suppress these messages. Does anyone know how you can tell Saxon to be more quiet ?

thanks !

Kind regards
Heikki Doeleman

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. Best Open Source Mac Front-Ends 2024
------------------------------------------------------------------------

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

hi Simon,

works like a charm !

thank you very much
Heikki Doeleman

On Tue, Sep 1, 2009 at 2:00 PM, Simon Pigot <Simon.Pigot@anonymised.com> wrote:

Hi Heikki,

In jeeves/src/jeeves/utils/Xml.java, try adding:

import net.sf.saxon.Configuration;

and then:

transFact.setAttribute(FeatureKeys.RECOVERY_POLICY,Configuration.RECOVER_SILENTLY);

to method transform, and something similar to method transformFOP

I'm testing to make sure we don't lose other useful info etc but it looks
like this does the job.

Cheers,
Simon

heikki wrote:

hello lists,

now that we use Saxon for XSLT, it's quite common to see messages about
"Recoverable errors" in GeoNetwork's console. Although these may not
indicate an ideal state of affairs, it appears they also do not mean that
things actually go wrong.

Because this clutters my console I'd like to suppress these messages. Does
anyone know how you can tell Saxon to be more quiet ?

thanks !

Kind regards
Heikki Doeleman

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day trial. Simplify your report design, integration and deployment - and
focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork