dbertoni 00/05/26 12:23:03
Modified: c/src/XSLT StylesheetHandler.cpp
Log:
Added support for xsl:fallback and fixed bug where an unknown extension
namespace would raise an error.
Revision Changes Path
1.28 +14 -2 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.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- StylesheetHandler.cpp 2000/05/24 19:38:49 1.27
+++ StylesheetHandler.cpp 2000/05/26 19:23:02 1.28
@@ -89,6 +89,7 @@
#include "ElemElement.hpp"
#include "ElemEmpty.hpp"
#include "ElemExtensionCall.hpp"
+#include "ElemFallback.hpp"
#include "ElemForEach.hpp"
#include "ElemIf.hpp"
#include "ElemLiteralResult.hpp"
@@ -684,6 +685,16 @@
name, atts,
lineNumber, columnNumber);
break;
+ case Constants::ELEMNAME_FALLBACK:
+ elem = new ElemFallback(
+ m_constructionContext,
+ m_stylesheet,
+ name,
+ atts,
+ lineNumber,
+ columnNumber);
+ break;
+
case Constants::ELEMNAME_CHOOSE:
elem = new ElemChoose(m_constructionContext,
m_stylesheet,
@@ -882,9 +893,10 @@
if (nsh == 0)
{
- XalanDOMString msg("(StylesheetHandler)
" + XalanDOMString(name) + " extension namespace prefix '" + prefix + "'
unknown");
+ // The extension namespace might not
yet be known...
+ nsh = new
ExtensionNSHandler(m_processor, extns);
- throw SAXException(toCharArray(msg));
+
m_stylesheet.addExtensionNamespace(extns, nsh);
}
if (!isEmpty(elements))