mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +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:
|
||||
StylesheetHandler(CompilationContext& context) :
|
||||
context_(context),
|
||||
top_(false),
|
||||
foreign_(0)
|
||||
top_(false)
|
||||
{
|
||||
context_.root(*this);
|
||||
includer_.context(context_, this);
|
||||
|
@ -64,15 +63,10 @@ public:
|
|||
const std::string& localName,
|
||||
const std::string& qName)
|
||||
{
|
||||
if(foreign_)
|
||||
--foreign_;
|
||||
} // endElement
|
||||
|
||||
virtual void characters(const std::string& ch)
|
||||
{
|
||||
if(foreign_)
|
||||
return;
|
||||
|
||||
for(std::string::const_iterator s = ch.begin(), e = ch.end(); s != e; ++s)
|
||||
if(!Arabica::XML::is_space(*s))
|
||||
throw SAX::SAXException("stylesheet element can not contain character data :'" + ch +"'");
|
||||
|
@ -181,7 +175,6 @@ private:
|
|||
SAX::DefaultHandler<std::string>* child_;
|
||||
IncludeHandler includer_;
|
||||
bool top_;
|
||||
unsigned int foreign_;
|
||||
|
||||
static const ChildElement allowedChildren[];
|
||||
}; // class StylesheetHandler
|
||||
|
|
Loading…
Add table
Reference in a new issue