org.openprivacy.reptile.xslt
Class BaseStylesheetEngine

java.lang.Object
  |
  +--org.openprivacy.reptile.xslt.BaseStylesheetEngine
All Implemented Interfaces:
StylesheetEngine
Direct Known Subclasses:
StreamStylesheetEngine

public abstract class BaseStylesheetEngine
extends java.lang.Object
implements StylesheetEngine

Provides base functionality for all StylesheetEngines (which want to use them).

Version:
$Id: BaseStylesheetEngine.java,v 1.3 2002/02/27 07:41:51 burton Exp $

Constructor Summary
BaseStylesheetEngine()
           
 
Method Summary
protected  void error(javax.xml.transform.TransformerException te, SequenceDispatchEntry sde, int step, java.lang.String stylesheet, ParameterPasser params)
           If Reptile throws a SAXParseException while parsing we need to handle this!!!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openprivacy.reptile.xslt.StylesheetEngine
transform, transform
 

Constructor Detail

BaseStylesheetEngine

public BaseStylesheetEngine()
Method Detail

error

protected void error(javax.xml.transform.TransformerException te,
                     SequenceDispatchEntry sde,
                     int step,
                     java.lang.String stylesheet,
                     ParameterPasser params)

If Reptile throws a SAXParseException while parsing we need to handle this!!!

We need a VERY stable way for producing and debugging XML/XSL error. Everytime se whould get a dump like the following:

 --------------------------------------------------------------------------------
 ****************** A StylesheetEngine problem has occured  *********************
 --------------------------------------------------------------------------------
 
 In StylesheetEngine: org.openprivacy.reptile.xslt.StreamStylesheetEngine
 In sequence: urn:search/channels
 During step: 2
 In stylesheet: resource:/xsl/misc/mozilla/page.xsl
 On line: 660
 On column: 28
 Public ID:
 System ID: 
 With exception classname: org.sax.SAXParserException
 With exception message: invalid UTF-8 character
 XML source is now stored in:  file:///tmp/test.txt
 
 --------------------------------------------------------------------------------
 

This step should ALSO override any settings we have in dumping... AKA it should ALWAYS dump here.

This should be shared code for debugging this. We should be able to use this independent on the implementation.