From 53c647c1a1bd07e52500539c61f0f5fd2f3a1963 Mon Sep 17 00:00:00 2001 From: jez Date: Fri, 1 Aug 2008 19:33:52 +0100 Subject: [PATCH] Changed default text handling. Text containing only whitespace is now output, where previously it was suppressed. All Modes tests now pass. --- include/XSLT/impl/xslt_stylesheet.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/XSLT/impl/xslt_stylesheet.hpp b/include/XSLT/impl/xslt_stylesheet.hpp index 9cd9d479..65f1585b 100755 --- a/include/XSLT/impl/xslt_stylesheet.hpp +++ b/include/XSLT/impl/xslt_stylesheet.hpp @@ -233,6 +233,8 @@ private: case DOM::Node::ATTRIBUTE_NODE: case DOM::Node::TEXT_NODE: case DOM::Node::CDATA_SECTION_NODE: + context.sink().characters(node.getNodeValue()); + /* { const std::string& ch = node.getNodeValue(); for(std::string::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i) @@ -242,6 +244,7 @@ private: return; } // if ... } + */ break; default: ;// nothing!