removed left over stuff for foreign element handling

This commit is contained in:
jez 2009-04-28 09:00:05 +01:00
parent 7b1c5c9541
commit 9f6fbba927

View file

@ -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