dbertoni 00/06/08 11:40:02
Modified: c/src/XSLT Stylesheet.cpp Stylesheet.hpp
Log:
Added fake, empty named node map for attributes.
Revision Changes Path
1.22 +2 -1 xml-xalan/c/src/XSLT/Stylesheet.cpp
Index: Stylesheet.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- Stylesheet.cpp 2000/06/07 21:12:03 1.21
+++ Stylesheet.cpp 2000/06/08 18:40:01 1.22
@@ -144,6 +144,7 @@
m_patternTable(),
m_attributeSets(),
m_surrogateChildren(*this),
+ m_fakeAttributes(),
m_elemDecimalFormats()
{
if (length(m_baseIdent) != 0)
@@ -1486,7 +1487,7 @@
const XalanNamedNodeMap*
Stylesheet::getAttributes() const
{
- return 0;
+ return &m_fakeAttributes;
}
1.14 +3 -1 xml-xalan/c/src/XSLT/Stylesheet.hpp
Index: Stylesheet.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Stylesheet.hpp 2000/06/07 18:35:01 1.13
+++ Stylesheet.hpp 2000/06/08 18:40:01 1.14
@@ -75,10 +75,10 @@
#include <XalanDOM/XalanDocument.hpp>
+#include <XalanDOM/XalanEmptyNamedNodeMap.hpp>
#include <XalanDOM/XalanNodeListSurrogate.hpp>
-
#include <XPath/PrefixResolver.hpp>
#include <XPath/NameSpace.hpp>
#include <XPath/QName.hpp>
@@ -1245,6 +1245,8 @@
AttributeSetMapType m_attributeSets;
XalanNodeListSurrogate m_surrogateChildren;
+
+ XalanEmptyNamedNodeMap m_fakeAttributes;
ElemDecimalFormatVectorType m_elemDecimalFormats;
};