mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
verify xsl:sort attribute values
This commit is contained in:
parent
7962545efb
commit
a9d7e1dcdd
1 changed files with 6 additions and 3 deletions
|
@ -26,11 +26,14 @@ public:
|
|||
{
|
||||
if(sort_ == 0)
|
||||
{
|
||||
static const char* DataTypes[] = { "text", "number", 0 };
|
||||
static const char* SortOrder[] = { "ascending", "descending", 0 };
|
||||
static const char* CaseOrder[] = { "upper-first", "lower-first", 0 };
|
||||
static const ValueRule rules[] = { { "select", false, "." },
|
||||
{ "lang", false, 0 },
|
||||
{ "data-type", false, "text" },
|
||||
{ "order", false, "ascending" },
|
||||
{ "case-order", false, 0 },
|
||||
{ "data-type", false, "text", DataTypes },
|
||||
{ "order", false, "ascending", SortOrder },
|
||||
{ "case-order", false, "upper-first", CaseOrder },
|
||||
{ 0, false, 0 } };
|
||||
|
||||
std::map<std::string, std::string> attr = gatherAttributes(qName, atts, rules);
|
||||
|
|
Loading…
Reference in a new issue