Skip to content

Instantly share code, notes, and snippets.

@stborchert
Created January 19, 2019 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stborchert/12020797842046de66007be0eead014d to your computer and use it in GitHub Desktop.
Save stborchert/12020797842046de66007be0eead014d to your computer and use it in GitHub Desktop.
Part of visu_config.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:group name="AvailablePlugins">
<xsd:choice>
<xsd:element name="openweathermap" type="openweathermap" />
</xsd:choice>
</xsd:group>
<!-- Custom widgets -->
<xsd:complexType name="openweathermap">
<xsd:attribute name="lang" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="en" />
<xsd:enumeration value="de" />
<xsd:enumeration value="fr" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="appid" type="xsd:string" use="required" />
<xsd:attribute name="detailItems" type="xsd:integer" use="optional" />
<xsd:attribute name="forecastItems" type="xsd:integer" use="optional" />
<xsd:attribute name="lat" type="xsd:string" use="optional" />
<xsd:attribute name="lon" type="xsd:string" use="optional" />
<xsd:attribute name="refresh" type="xsd:integer" use="optional" />
<xsd:attribute ref="class" use="optional" />
</xsd:complexType>
</xsd:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment