You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by au...@apache.org on 2001/02/03 01:08:08 UTC
cvs commit: xml-xalan/c/src/XSLT XSLTProcessorEnvSupportDefault.cpp
auriemma 01/02/02 16:08:08
Modified: c/src/XSLT XSLTProcessorEnvSupportDefault.cpp
Log:
Forward calls to XSLTEngineImpl.
Revision Changes Path
1.19 +61 -21 xml-xalan/c/src/XSLT/XSLTProcessorEnvSupportDefault.cpp
Index: XSLTProcessorEnvSupportDefault.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTProcessorEnvSupportDefault.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- XSLTProcessorEnvSupportDefault.cpp 2000/11/21 21:10:28 1.18
+++ XSLTProcessorEnvSupportDefault.cpp 2001/02/03 00:08:07 1.19
@@ -336,40 +336,80 @@
bool
XSLTProcessorEnvSupportDefault::problem(
- eSource where,
+ eSource /* where */,
eClassification classification,
const XalanNode* styleNode,
const XalanNode* sourceNode,
const XalanDOMString& msg,
- int lineNo,
- int charOffset) const
+ int /* lineNo */,
+ int /* charOffset */) const
{
- return m_defaultSupport.problem(where,
- classification,
- styleNode,
- sourceNode,
- msg,
- lineNo,
- charOffset);
+ if (classification == XPathEnvSupport::eError)
+ {
+ m_processor->error(
+ msg,
+ styleNode,
+ sourceNode);
+
+ return true;
+ }
+ else if (classification == XPathEnvSupport::eWarning)
+ {
+ m_processor->warn(
+ msg,
+ styleNode,
+ sourceNode);
+
+ return false;
+ }
+ else
+ {
+ m_processor->message(
+ msg,
+ styleNode,
+ sourceNode);
+
+ return false;
+ }
}
bool
XSLTProcessorEnvSupportDefault::problem(
- eSource where,
+ eSource /* where */,
eClassification classification,
- const PrefixResolver* resolver,
+ const PrefixResolver* /* resolver */,
const XalanNode* sourceNode,
const XalanDOMString& msg,
- int lineNo,
- int charOffset) const
+ int /* lineNo */,
+ int /* charOffset */) const
{
- return m_defaultSupport.problem(where,
- classification,
- resolver,
- sourceNode,
- msg,
- lineNo,
- charOffset);
+ if (classification == XPathEnvSupport::eError)
+ {
+ m_processor->error(
+ msg,
+ 0,
+ sourceNode);
+
+ return true;
+ }
+ else if (classification == XPathEnvSupport::eWarning)
+ {
+ m_processor->warn(
+ msg,
+ 0,
+ sourceNode);
+
+ return false;
+ }
+ else
+ {
+ m_processor->message(
+ msg,
+ 0,
+ sourceNode);
+
+ return false;
+ }
}