Don't suppress element namespace prefixes or attributes which are in the

XSL namespace.
This commit is contained in:
jez 2008-08-08 22:46:18 +01:00
parent 468d401865
commit 0aeeb9c1fb

View file

@ -138,9 +138,6 @@ public:
if(pending_attribute_ == -1)
return;
if(atts_.getURI(pending_attribute_) == StylesheetConstant::NamespaceURI())
atts_.removeAttribute(pending_attribute_);
else
atts_.setValue(pending_attribute_, buffer_.str());
pending_attribute_ = -1;
@ -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,