mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
corrected xsl:stylesheet attribute validation
This commit is contained in:
parent
53c647c1a1
commit
189ea0a33e
1 changed files with 4 additions and 2 deletions
|
@ -54,9 +54,11 @@ public:
|
|||
throw SAX::SAXException("Top-level element must be 'stylesheet' or 'transform'.");
|
||||
|
||||
static const ValueRule rules[] = { { "version", true, 0 },
|
||||
{ "extension-element-prefixes", false, 0 },
|
||||
{ "exclude-result-prefixes", false, 0 },
|
||||
{ 0, false, 0 } };
|
||||
std::string version = gatherAttributes(qName, atts, rules)["version"];
|
||||
if(atts.getValue("version") != StylesheetConstant::Version())
|
||||
std::map<std::string, std::string> attributes = gatherAttributes(qName, atts, rules);
|
||||
if(attributes["version"] != StylesheetConstant::Version())
|
||||
throw SAX::SAXException("I'm only a poor version 1.0 XSLT Transformer.");
|
||||
|
||||
top_ = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue