mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Don't suppress element namespace prefixes or attributes which are in the
XSL namespace.
This commit is contained in:
parent
468d401865
commit
0aeeb9c1fb
1 changed files with 1 additions and 10 deletions
|
@ -138,9 +138,6 @@ public:
|
||||||
if(pending_attribute_ == -1)
|
if(pending_attribute_ == -1)
|
||||||
return;
|
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;
|
pending_attribute_ = -1;
|
||||||
|
@ -151,9 +148,6 @@ public:
|
||||||
const std::string& qName,
|
const std::string& qName,
|
||||||
const std::string& value)
|
const std::string& value)
|
||||||
{
|
{
|
||||||
if(uri == StylesheetConstant::NamespaceURI())
|
|
||||||
return;
|
|
||||||
|
|
||||||
if(!pending_element_)
|
if(!pending_element_)
|
||||||
{
|
{
|
||||||
std::cerr << "ERROR: Cannot write attribute, no open element" << std::endl;
|
std::cerr << "ERROR: Cannot write attribute, no open element" << std::endl;
|
||||||
|
@ -318,9 +312,6 @@ private:
|
||||||
if(n->first == "xml")
|
if(n->first == "xml")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(n->second == StylesheetConstant::NamespaceURI())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
std::string qName = (n->first.empty()) ? "xmlns" : "xmlns:" + n->first;
|
std::string qName = (n->first.empty()) ? "xmlns" : "xmlns:" + n->first;
|
||||||
atts_.addAttribute("http://www.w3.org/2000/xmlns",
|
atts_.addAttribute("http://www.w3.org/2000/xmlns",
|
||||||
n->first,
|
n->first,
|
||||||
|
|
Loading…
Add table
Reference in a new issue