mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +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)
|
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, "." },
|
static const ValueRule rules[] = { { "select", false, "." },
|
||||||
{ "lang", false, 0 },
|
{ "lang", false, 0 },
|
||||||
{ "data-type", false, "text" },
|
{ "data-type", false, "text", DataTypes },
|
||||||
{ "order", false, "ascending" },
|
{ "order", false, "ascending", SortOrder },
|
||||||
{ "case-order", false, 0 },
|
{ "case-order", false, "upper-first", CaseOrder },
|
||||||
{ 0, false, 0 } };
|
{ 0, false, 0 } };
|
||||||
|
|
||||||
std::map<std::string, std::string> attr = gatherAttributes(qName, atts, rules);
|
std::map<std::string, std::string> attr = gatherAttributes(qName, atts, rules);
|
||||||
|
|
Loading…
Add table
Reference in a new issue