From 0aeeb9c1fbd9508be339bc123c5d60fff26fb585 Mon Sep 17 00:00:00 2001 From: jez Date: Fri, 8 Aug 2008 22:46:18 +0100 Subject: [PATCH] Don't suppress element namespace prefixes or attributes which are in the XSL namespace. --- include/XSLT/impl/xslt_sink.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/include/XSLT/impl/xslt_sink.hpp b/include/XSLT/impl/xslt_sink.hpp index 7cc56af5..44871d47 100755 --- a/include/XSLT/impl/xslt_sink.hpp +++ b/include/XSLT/impl/xslt_sink.hpp @@ -138,10 +138,7 @@ public: if(pending_attribute_ == -1) return; - if(atts_.getURI(pending_attribute_) == StylesheetConstant::NamespaceURI()) - atts_.removeAttribute(pending_attribute_); - else - atts_.setValue(pending_attribute_, buffer_.str()); + atts_.setValue(pending_attribute_, buffer_.str()); pending_attribute_ = -1; } // end_attribute @@ -151,9 +148,6 @@ public: const std::string& qName, const std::string& value) { - if(uri == StylesheetConstant::NamespaceURI()) - return; - if(!pending_element_) { std::cerr << "ERROR: Cannot write attribute, no open element" << std::endl; @@ -318,9 +312,6 @@ private: if(n->first == "xml") continue; - if(n->second == StylesheetConstant::NamespaceURI()) - continue; - std::string qName = (n->first.empty()) ? "xmlns" : "xmlns:" + n->first; atts_.addAttribute("http://www.w3.org/2000/xmlns", n->first,