...
unit
: a string containing the unit for the column (e.g. "cm" for a water level),isEditable
: a flag with valuetrue
orfalse
indicating whether the column is editable for the user (e.g. the user can enter the forecast in this column),isExport
: a flag with valuetrue
orfalse
indicating whether the column must be exported to file if the forecast is published (editable columns are exported by default),exportName
: a string containing the name that must be used for exporting the column to file.lang
: a string that specifies the language of the header; this attribute behaves the same as for theTitle
keys.
For example, the header section in the forecast table may look like:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<Row id="Vlissingen"> <Cell columnId="station">Vlissingen</Cell> <Cell columnId="date">12 Mar</Cell> <Cell columnId="time">17h16</Cell> <Cell columnId="astro_level">237</Cell> </Row> |
The Cell
key also supports a lang
attribute that behaves the same as for the Title
keys.
Example
A complete example of a script configuration is given here:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <Script xmlns="http://localhost" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://localhost xml-schemas/script_config.xsd"> <Title>storm surge March 12</Title> <Start date="2008-03-12" time="04:00:00"/> <Stop date="2008-03-12" time="18:00:00"/> <Stories> <Inbox> <Title>inbox</Title> <Frame> <Title lang="NL">Start zitting</Title> <Title lang="EN">Session start</Title> <Start date="2008-03-12" time="04:00:05"/> <Popup>true</Popup> <File lang="NL">start_zitting_NL.txt</File> <File lang="EN">start_zitting_EN.txt</File> </Frame> <Frame> <Title lang="NL">KNMI weeranalyse 12 maart, 0:00 uur</Title> <Title lang="EN">KNMI analysis March 12, 12:00 midnight</Title> <Start date="2008-03-12" time="04:00:05"/> <Popup>false</Popup> <File lang="NL">weerkaart_12maart_00uur.pdf</File> <File lang="EN">weerkaart_12maart_00uur.pdf</File> </Frame> <Frame> <Title lang="NL">KNMI run 11 maart, 12:00 uur</Title> <Title lang="EN">KNMI run March 11, 12:00 noon</Title> <Start date="2008-03-12" time="04:00:05"/> <Popup>false</Popup> <File lang="NL">windveld_11maart_12uur.pdf</File> <File lang="EN">windveld_11maart_12uur.pdf</File> </Frame> <Frame> <Title lang="NL">Opdracht 1</Title> <Title lang="EN">Exercise 1</Title> <Start date="2008-03-12" time="04:11:00"/> <Popup>true</Popup> <File lang="NL">opdracht1_NL.txt</File> <File lang="EN">opdracht1_EN.txt</File> </Frame> </Inbox> <Story> <Title>KNMI</Title> <Frame> <Title lang="NL">Telefoon</Title> <Title lang="EN">Telephone call</Title> <Start date="2008-03-12" time="04:10:00"/> <Popup>true</Popup> <File lang="NL">telefoon_knmi_bericht1_NL.txt</File> <File lang="EN">telefoon_knmi_bericht1_EN.txt</File> </Frame> </Story> <Story> <Title>HMCZ</Title> <Frame> <Title lang="NL">Telefoon</Title> <Title lang="EN">Telephone call</Title> <Start date="2008-03-12" time="04:11:00"/> <Popup>false</Popup> <File lang="NL">telefoon_hmcz_bericht1_NL.txt</File> <File lang="EN">telefoon_hmcz_bericht1_EN.txt</File> </Frame> </Story> <Story> <Title>HMCN</Title> <Frame> <Title lang="NL">Telefoon</Title> <Title lang="EN">Telephone call</Title> <Start date="2008-03-12" time="05:36:00"/> <Popup>false</Popup> <File lang="NL">telefoon_hmcn_bericht1_NL.txt</File> <File lang="EN">telefoon_hmcn_bericht1_EN.txt</File> </Frame> </Story> </Stories> <ForecastTable> <TimeZone>GMT</TimeZone> <Header> <Column id="sector">sector</Column> <Column id="station">station</Column> <Column id="astro_date" lang="NL">datum</Column> <Column id="astro_timedate">tijd astro HW< lang="EN">date</Column> <Column id="astro_level" time" lang="NL">tijd astro HW</Column> <Column id="astro_time" lang="EN">time astro high tide</Column> <Column id="astro_level" unit="cm" isExport="true" exportName="H.tidal.astronomic" lang="NL">astro waterstand</Column> <Column id="astro_level" unit="cm" isExport="true" exportName="H.tidal.astronomic" lang="EN">astro water level</Column> <Column id="svsd_forecast" unit="cm" isExportisEditable="true" exportName="H.tidal.astronomic">astro waterstand<peak" lang="NL">SVSD verwachting</Column> <Column id="svsd_forecast" unit="cm" isEditable="true" exportName="H.tidal.peak">SVSD verwachting< lang="EN">forecast</Column> </Header> <Row id="Vlissingen"> <Cell columnId="sector">Schelde<"sector">Schelde</Cell> <Cell columnId="station">Vlissingen</Cell> <Cell columnId="astro_date" lang="stationNL">Vlissingen<>12 maart</Cell> <Cell columnId="astro_date">12 maart<" lang="ËN">March 12</Cell> <Cell columnId="astro_time">17:16</Cell> <Cell columnId="astro_level">237</Cell> </Row> <Row id="HoekVanHolland"> <Cell columnId="sector">West Holland</Cell> <Cell columnId="station">Hoek van Holland</Cell> <Cell columnId="astro_date" lang="NL">12 maart</Cell> <Cell columnId="astro_date" lang="EN">12 maart</Cell> <Cell columnId="astro_time">18:01</Cell> <Cell columnId="astro_level">122</Cell> </Row> </ForecastTable> </Script> |