Station Details Project
This started as a self-education exercise in eXtensible Stylesheet Language (XSL) Tranformation (XSLT), where XSL is a styling language for XML that defines how data will be displayed in another format.
The aim was to create an XML-based webpage showing the details of our weather station to replace the existing hard-coded webpage. It was intended that Windows Task Scheduler would generate a daily XML metadata document from a template file.
Project Stages
The following stages were identified as key elements of the project:
- Match variables with the required station and instrument details,
- Create the template file and XML Schema Definition (XSD) document to specify the structure of the new Station Details Document,
- Create an XSL document to specify how the XML data would be displayed in a web browser.
Project Variables
The variables used in this project are listed below. Select a variable to view the complete XML element definition, including: the element name and description, the expected data type, the permitted values where explicitly defined, and whether the element is mandatory or optional.
The variables in the template file are replaced with the equivalent webtags provided by the PWS software. If a variable has no equivalent webtag, the variable is manually updated in the template file. If an optional variable subsequently becomes permanently unavailable, the syntax for that element in the template file is changed from <element>variable</element> to <element />.
- activation date
- adjustment comment
- adjustment value
- air quality unit
- auto obs
- AWS brand name
- AWS end date
- AWS model
- AWS model
- AWS options
- aws specifications
- AWS start date
- cloud amount units
- dewpoint units
- distance units
- element name
- evaporation instrumentation
- evaporation units
- height units
- humidity units
- instrument designation
- instrument finish date
- instrument height
- instrument location
- instrument manufacturer
- instrument model
- instrument start date
- instrument type
- last metadata update
- latest adjustment
- network identifier
- network name
- photo caption
- photo filename
- pressure units
- rainfall units
- reason for withdrawal
- software end date
- software name
- software reporting interval
- software start date
- software version
- station altitude
- station closed
- station identifier
- station latitude
- station longitude
- station name
- station opened
- sunshine duration units
- temperature units
- wind speed units
- wmo climate zone
- wow site rating
XML Schema Definition
View the XSD diagram for this project.
Project Status
This 2020 project successfully achieved its aims and is operational. View our Station Details & Instrumentation using the Station Details Document. The project remains open for further development.