dbertoni 00/05/31 08:02:47
Modified: c/src/XSLT StylesheetHandler.cpp
Log:
Fixed bug where PI would cause text to be preserved. (ntst07).
Revision Changes Path
1.30 +37 -15 xml-xalan/c/src/XSLT/StylesheetHandler.cpp
Index: StylesheetHandler.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetHandler.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- StylesheetHandler.cpp 2000/05/29 22:47:55 1.29
+++ StylesheetHandler.cpp 2000/05/31 15:02:46 1.30
@@ -1233,7 +1233,8 @@
-void StylesheetHandler::endElement(const XMLCh* const name)
+void
+StylesheetHandler::endElement(const XMLCh* const name)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
@@ -1302,8 +1303,12 @@
// END SANJIVA CODE
}
+
-void StylesheetHandler::characters (const XMLCh* const chars, const unsigned
int length)
+void
+StylesheetHandler::characters(
+ const XMLCh* const chars,
+ const unsigned int length)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
@@ -1384,13 +1389,14 @@
}
// END SANJIVA CODE
// TODO: Flag error if text inside of stylesheet
-
-// m_lastPopped = 0;
}
-void StylesheetHandler::cdata(const XMLCh* const chars, const unsigned int
length)
+void
+StylesheetHandler::cdata(
+ const XMLCh* const chars,
+ const unsigned int length)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
@@ -1473,39 +1479,50 @@
}
-void StylesheetHandler::ignorableWhitespace (const XMLCh* const /*chars*/,
const unsigned int /*length*/)
+
+void
+StylesheetHandler::ignorableWhitespace(
+ const XMLCh* const /*chars*/,
+ const unsigned int /*length*/)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
return;
-
- // Ignore!
+ // Ignore!
m_lastPopped = 0;
}
-void StylesheetHandler::processingInstruction (const XMLCh* const
/*target*/, const XMLCh* const /*data*/)
+
+void
+StylesheetHandler::processingInstruction(
+ const XMLCh* const /*target*/,
+ const XMLCh* const /*data*/)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
return;
- m_lastPopped = 0;
+ // No action for the moment.
}
+
-void StylesheetHandler::comment(const XMLCh* const /*data*/)
+void
+StylesheetHandler::comment(const XMLCh* const /*data*/)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
return;
- // No action for the moment.
+ // No action for the moment.
}
+
-void StylesheetHandler::entityReference(const XMLCh* const /*name*/)
+void
+StylesheetHandler::entityReference(const XMLCh* const /*name*/)
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
@@ -1514,8 +1531,10 @@
// No action for the moment.
}
+
-void StylesheetHandler::resetDocument()
+void
+StylesheetHandler::resetDocument()
{
// if we have apending exception, we don't want to even try to process
this
if (m_exceptionPending == true)
@@ -1525,8 +1544,11 @@
}
+
void
-StylesheetHandler::charactersRaw(const XMLCh* const /* chars */, const
unsigned int /* length */)
+StylesheetHandler::charactersRaw(
+ const XMLCh* const /* chars */,
+ const unsigned int /* length */)
{
// if we have a pending exception, we don't want to even try to process
this
if (m_exceptionPending == true)