Skip to content

Commit d09c775

Browse files
authored
Add geojson2mapml specification (#245)
* First pass at geojson2mapml, still unanswered questions about how to represent overloaded dictionary members, e.g. within featureCaptionInterface the value provided should be a property name or a function. How to represent in WebIDL, or is it even possible. Current state is not raising an exception, but does it mean what we want it to mean, unsure? * Use stringifier for FeatureCaptionInterface * Update revision history. Add prose for back(), forward(), reload(). Add draft WebIDL for geojson2mapml() options dictionary. * Add schema and prose for geojson2mapml and options. * Fix return type for geometryFunction. Add HTMLGeometryChildElement abstract interface type. * Add HTMLGeometryChildElement change history entry
1 parent ab02fb3 commit d09c775

3 files changed

Lines changed: 478 additions & 97 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
default namespace = "http://www.w3.org/1999/xhtml"
2+
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
3+
4+
start =
5+
element table {
6+
element thead {
7+
element tr {
8+
element th {
9+
attribute role {
10+
## The value of the role attribute is set to "columnheader",
11+
## designating the meaning of contained cell text ("Property name")
12+
## as a column header value
13+
text
14+
},
15+
attribute scope {
16+
## The value of the scope attribute is set to "col",
17+
## designating that what is contained in corresponding table cells
18+
## as a column value of the "Property name" column.
19+
text
20+
},
21+
## The en value of this th is set to "Property name".
22+
## This string shall be localized to the locale of the user agent.
23+
text
24+
},
25+
element th {
26+
attribute role {
27+
## The value of the role attribute is set to "columnheader",
28+
## designating the meaning of contained table text
29+
## as a column header value
30+
text
31+
},
32+
attribute scope {
33+
## The value of the scope attribute is set to "col",
34+
## designating that what is contained is a column value.
35+
text
36+
},
37+
## The en value of this th is set to "Property value".
38+
## This string shall be localized to the locale of the user agent.
39+
text
40+
}
41+
}
42+
},
43+
element tbody {
44+
element tr {
45+
element th {
46+
attribute scope {
47+
## The value of the scope attribute is set to "row",
48+
## designating this as a table data row
49+
text
50+
},
51+
## The text value of this cell is set to the properties'
52+
## property member name from the input Feature
53+
text
54+
},
55+
element td {
56+
attribute itemprop {
57+
## The text value of the itemprop attribute is set to the
58+
## properties' property member name from the input Feature
59+
text
60+
},
61+
## The text value of this cell is set to the value of the GeoJSON
62+
## properties' property member from the input Feature
63+
text
64+
}
65+
}
66+
}
67+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<grammar
3+
xmlns="http://relaxng.org/ns/structure/1.0"
4+
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
5+
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
6+
<start ns="http://www.w3.org/1999/xhtml">
7+
<choice>
8+
<element name="table">
9+
<element name="thead">
10+
<element name="tr">
11+
<element name="th">
12+
<attribute name="role"><text><a:documentation>The value of the role attribute is set to "columnheader", designating the meaning of contained cell text ("Property name") as a column header value</a:documentation></text></attribute>
13+
<attribute name="scope"><text><a:documentation>The value of the scope attribute is set to "col", designating that what is contained in corresponding table cells as a column value of the "Property name" column. </a:documentation>
14+
</text></attribute>
15+
<text><a:documentation>The en value of this th is set to "Property name". This string shall be localized to the locale of the user agent.</a:documentation>
16+
</text>
17+
</element>
18+
<element name="th">
19+
<attribute name="role"><text><a:documentation>The value of the role attribute is set to "columnheader", designating the meaning of contained table text as a column header value</a:documentation></text></attribute>
20+
<attribute name="scope"><text><a:documentation>The value of the scope attribute is set to "col", designating that what is contained is a column value. </a:documentation>
21+
</text></attribute>
22+
<text><a:documentation>The en value of this th is set to "Property value". This string shall be localized to the locale of the user agent.</a:documentation>
23+
</text>
24+
</element>
25+
</element>
26+
</element>
27+
<element name="tbody">
28+
<element name="tr">
29+
<element name="th">
30+
<attribute name="scope">
31+
<text><a:documentation>The value of the scope attribute is set to "row", designating this as a table data row</a:documentation></text>
32+
</attribute>
33+
<text><a:documentation>The text value of this cell is set to the properties' property member name from the input Feature</a:documentation>
34+
</text>
35+
</element>
36+
<element name="td">
37+
<attribute name="itemprop">
38+
<text><a:documentation>The text value of the itemprop attribute is set to the properties' property member name from the input Feature</a:documentation></text>
39+
</attribute>
40+
<text><a:documentation>The text value of this cell is set to the value of the GeoJSON properties' property member from the input Feature</a:documentation>
41+
</text>
42+
</element>
43+
</element>
44+
</element>
45+
</element>
46+
</choice>
47+
</start>
48+
</grammar>

0 commit comments

Comments
 (0)