From 67e8a313606194f4d2af4914a20b825d2caeb046 Mon Sep 17 00:00:00 2001 From: jez Date: Tue, 17 Mar 2009 09:07:22 +0000 Subject: [PATCH] allow whitespace within xsl:output --- include/XSLT/impl/handler/xslt_output_handler.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/XSLT/impl/handler/xslt_output_handler.hpp b/include/XSLT/impl/handler/xslt_output_handler.hpp index a8d6300d..d300a3c1 100644 --- a/include/XSLT/impl/handler/xslt_output_handler.hpp +++ b/include/XSLT/impl/handler/xslt_output_handler.hpp @@ -53,7 +53,9 @@ public: virtual void characters(const std::string& ch) { - throw SAX::SAXException("xsl:output must be empty"); + for(std::string::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i) + if(!Arabica::XML::is_space(*i)) + throw SAX::SAXException("xsl:value-of element must be empty"); } // characters private: