public class XSLTHandler
extends java.lang.Object
implements com.novell.xsl.ErrorHandler, com.novell.xsl.MessageHandler
| Constructor and Description |
|---|
XSLTHandler()
Construct an instance without a Trace object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message)
Receive notification of an XSL error.
|
int |
getErrorCount()
Returns the number of errors that have occurred so far.
|
int |
getWarningCount()
Returns the number of warnings that have occurred so far.
|
java.lang.String[] |
getWarnings()
Return any warning messages generated during stylesheet processing.
|
void |
message(org.w3c.dom.Node message)
Receive notification of an XSLT message
|
void |
resetCounts()
Resets the number of errors and warnings to zero.
|
void |
warning(java.lang.String message)
Receive notification of an XSL warning.
|
public int getErrorCount()
getErrorCount in interface com.novell.xsl.ErrorHandlerpublic int getWarningCount()
getWarningCount in interface com.novell.xsl.ErrorHandlerpublic void resetCounts()
resetCounts in interface com.novell.xsl.ErrorHandlerpublic void error(java.lang.String message)
throws com.novell.xsl.XSLException
If this method returns normally, the XSL processor will do its best to recover and continue processing. The result document may be incomplete or even empty.
If this method throws an exception, the error is fatal and the XSL processor will abort processing and propagate the exception.
error in interface com.novell.xsl.ErrorHandlermessage - the error messagecom.novell.xsl.XSLException - if the error is fatalpublic void warning(java.lang.String message)
XSLException since warnings are never fatal.warning in interface com.novell.xsl.ErrorHandlermessage - the warning messagepublic java.lang.String[] getWarnings()
public void message(org.w3c.dom.Node message)
message in interface com.novell.xsl.MessageHandlermessage - the message an XML fragment