@namespace url(http://www.xmlmind.com/xmleditor/schema/form-sampler);

para {
    display: block;
    margin: 1.33ex 0;
}

bold {
    display: inline;
    font-weight: bold;
}

double2,
double1,
float2,
float1,
long2,
long1,
int2,
int1,
short2,
short1,
byte2,
byte1,
day1,
day2,
monthDay1,
monthDay2,
month1,
month2,
yearMonth1,
yearMonth2,
year1,
year2,
dateTime2,
dateTime1,
time2,
time1,
date2,
date1,
cymklistb,
cymklista,
cymkb,
cymka,
cymklist2,
cymklist1,
cymk2,
cymk1,
string2,
string1,
fileName,
uri2,
uri1,
integer2,
integer1,
rgb2,
rgb1,
hidden,
disabled,
yesno,
onoff {
    display: inline-block;
    font-size: smaller;
    padding: 1px; /* Needed to display the red border of the selection */
}

onoff {
    content: check-box(attribute, value,
                       label, "On", 
                       unchecked-value, "false", 
                       checked-value, "true");
}

yesno {
    content: check-box(label, "Yes", 
                       unchecked-value, "no", 
                       checked-value, "yes");
}

disabled {
    content: check-box(attribute, value,
                       label, "Disabled", 
                       checked-value, "disabled",
		       remove-value, yes);
}

hidden {
    content: check-box(label, "Hidden", 
                       checked-value, "hidden",
		       remove-value, yes);
}

rgb1 {
    content: combo-box(attribute, value);
}

rgb2 {
    content: combo-box(labels, "Green\A Blue\A Red",
                       values, "green\A blue\A red");
}

integer1 {
    content: text-field(attribute, value,
                        columns, 10);
}

integer2 {
    content: text-field(columns, 10);
}

uri1 {
    content: file-name-field(attribute, value,
                             columns, 40, 
                             font-family, monospaced);
}

uri2 {
    content: file-name-field(absolute, yes,
                             directory, yes,
                             save, yes,
                             url, yes,
                             columns, 40, 
                             font-family, monospaced);
}

fileName {
    content: file-name-field(absolute, yes,
                             directory, yes,
                             save, yes,
                             url, no,
                             columns, 40, 
                             font-family, monospaced);
}

string1 {
    content: text-area(attribute, value,
                       columns, 40,
                       rows, 2,
                       wrap, word);
}

string1[rows][columns] {
    content: text-area(attribute, value,
                       columns, attr(columns),
                       rows, attr(rows),
                       wrap, word);
}

string2 {
    content: text-area(columns, 40,
                       wrap, line);
}

cymk1 {
    content: list(attribute, value,
                  labels, "Cyan\A Yellow\A Magenta\A Black");
}

cymk2 {
    content: list(rows, 3);
}

cymklist1 {
    content: list(attribute, value,
                  labels, "Cyan\A Yellow\A Magenta\A Black",
                  values, "cyan\A yellow\A magenta\A black",
                  selection, multiple,
                  separator, ",");
}

cymklist2 {
    content: list(rows, 3, 
                  selection, multiple);
}

cymka {
    content: radio-buttons(attribute, value,
                           labels, "Cyan\A Yellow\A Magenta\A Black");
}

cymkb {
    content: radio-buttons(rows, 2);
}
/*
cymkb {
    content: combo-box();
}
*/

cymklista {
    content: radio-buttons(attribute, value,
                           labels, "Cyan\A Yellow\A Magenta\A Black",
                           values, "cyan\A yellow\A magenta\A black",
                           selection, multiple,
                           separator, ",");
}

cymklistb {
    content: radio-buttons(columns, 2, 
                           selection, multiple);
}

date1 {
    content: date-field(attribute, value,
	                data-type, date,
                        language, en, 
                        country, "US");
}

/* Default data-type is date */
date2 {
    content: date-field(pattern, "d MMMMMMMMM yyyy",
                        language, en, 
                        country, "US");
}

time1 {
    content: date-field(attribute, value,
                        data-type, time,
                        language, en, 
                        country, "US");
}

time2 {
    content: date-field(data-type, time,
                        language, en, 
                        country, "US");
}

dateTime1 {
    content: date-field(attribute, value,
                        data-type, dateTime,
                        language, en, 
                        country, "US");
}

dateTime2 {
    content: date-field(pattern, "yy/MM/dd hh:mm a Z",
                        data-type, dateTime,
                        language, en, 
                        country, "US");
}

day1 {
    content: date-field(attribute, value,
                        data-type, gDay,
                        language, en, 
                        country, "US");
}

day2 {
    content: date-field(data-type, gDay,
                        language, en, 
                        country, "US");
}

monthDay1 {
    content: date-field(attribute, value,
                        pattern, "dd MMMM",
                        data-type, gMonthDay,
                        language, en, 
                        country, "US");
}

monthDay2 {
    content: date-field(data-type, gMonthDay,
                        language, en, 
                        country, "US");
}

month1 {
    content: date-field(attribute, value,
                        data-type, gMonth,
                        language, en, 
                        country, "US");
}

month2 {
    content: date-field(data-type, gMonth,
                        language, en, 
                        country, "US");
}

yearMonth1 {
    content: date-field(attribute, value,
                        data-type, gYearMonth,
                        language, en, 
                        country, "US");
}

yearMonth2 {
    content: date-field(data-type, gYearMonth,
                        language, en, 
                        country, "US");
}

year1 {
    content: date-field(attribute, value,
                        data-type, gYear,
                        language, en, 
                        country, "US");
}

year2 {
    content: date-field(data-type, gYear,
                        language, en, 
                        country, "US");
}

byte1 {
    content: number-field(attribute, value,
                          data-type, byte,
                          language, en, 
                          country, "US");
}

byte2 {
    content: number-field(data-type, byte,
                          language, en, 
                          country, "US");
}

short1 {
    content: number-field(attribute, value,
                          data-type, short,
                          language, en, 
                          country, "US");
}

short2 {
    content: number-field(data-type, short,
                          language, en, 
                          country, "US");
}

int1 {
    content: number-field(attribute, value,
                          data-type, int,
                          language, en, 
                          country, "US");
}

int2 {
    content: number-field(data-type, int,
                          language, en, 
                          country, "US");
}

long1 {
    content: number-field(attribute, value,
                          data-type, long,
                          language, en, 
                          country, "US");
}

long2 {
    content: number-field(data-type, long,
                          language, en, 
                          country, "US");
}

float1 {
    content: number-field(attribute, value,
                          data-type, float,
                          language, en, 
                          country, "US");
}

float2 {
    content: number-field(data-type, float,
                          language, en, 
                          country, "US");
}

/* Default data-type is double */
double1 {
    content: number-field(attribute, value,
                          pattern, "0.0#####",
                          language, en, 
                          country, "US");
}

double2 {
    content: number-field(data-type, double,
                          pattern, "0.0#####",
                          language, en, 
                          country, "US");
}
