allow whitespace within xsl:output

This commit is contained in:
jez 2009-03-17 09:07:22 +00:00
parent 334317f422
commit 67e8a31360

View file

@ -53,7 +53,9 @@ public:
virtual void characters(const std::string& ch)
{
throw SAX::SAXException("xsl:output must be empty");
for(std::string::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i)
if(!Arabica::XML::is_space(*i))
throw SAX::SAXException("xsl:value-of element must be empty");
} // characters
private: