mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-06 20:46:18 +01:00
removed left over stuff for foreign element handling
This commit is contained in:
parent
7b1c5c9541
commit
9f6fbba927
1 changed files with 1 additions and 8 deletions
|
@ -25,8 +25,7 @@ class StylesheetHandler : public SAX::DefaultHandler<std::string>
|
||||||
public:
|
public:
|
||||||
StylesheetHandler(CompilationContext& context) :
|
StylesheetHandler(CompilationContext& context) :
|
||||||
context_(context),
|
context_(context),
|
||||||
top_(false),
|
top_(false)
|
||||||
foreign_(0)
|
|
||||||
{
|
{
|
||||||
context_.root(*this);
|
context_.root(*this);
|
||||||
includer_.context(context_, this);
|
includer_.context(context_, this);
|
||||||
|
@ -64,15 +63,10 @@ public:
|
||||||
const std::string& localName,
|
const std::string& localName,
|
||||||
const std::string& qName)
|
const std::string& qName)
|
||||||
{
|
{
|
||||||
if(foreign_)
|
|
||||||
--foreign_;
|
|
||||||
} // endElement
|
} // endElement
|
||||||
|
|
||||||
virtual void characters(const std::string& ch)
|
virtual void characters(const std::string& ch)
|
||||||
{
|
{
|
||||||
if(foreign_)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for(std::string::const_iterator s = ch.begin(), e = ch.end(); s != e; ++s)
|
for(std::string::const_iterator s = ch.begin(), e = ch.end(); s != e; ++s)
|
||||||
if(!Arabica::XML::is_space(*s))
|
if(!Arabica::XML::is_space(*s))
|
||||||
throw SAX::SAXException("stylesheet element can not contain character data :'" + ch +"'");
|
throw SAX::SAXException("stylesheet element can not contain character data :'" + ch +"'");
|
||||||
|
@ -181,7 +175,6 @@ private:
|
||||||
SAX::DefaultHandler<std::string>* child_;
|
SAX::DefaultHandler<std::string>* child_;
|
||||||
IncludeHandler includer_;
|
IncludeHandler includer_;
|
||||||
bool top_;
|
bool top_;
|
||||||
unsigned int foreign_;
|
|
||||||
|
|
||||||
static const ChildElement allowedChildren[];
|
static const ChildElement allowedChildren[];
|
||||||
}; // class StylesheetHandler
|
}; // class StylesheetHandler
|
||||||
|
|
Loading…
Add table
Reference in a new issue