Skip to content

Instantly share code, notes, and snippets.

@altfatterz
Created October 3, 2013 20:39
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 altfatterz/6816731 to your computer and use it in GitHub Desktop.
Save altfatterz/6816731 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
targetNamespace="http://www.backbase.com/ns/widgets"
xmlns:bb="http://www.backbase.com/ns/widgets"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- widget definition root element -->
<xs:element name="widget" type="bb:widgetType"/>
<!-- widget definition data types -->
<xs:complexType name="resourcesType">
<xs:sequence>
<xs:element type="bb:resourceType" name="resource" maxOccurs="unbounded" minOccurs="1" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="widgetType">
<xs:sequence>
<xs:element type="bb:resourcesType" name="resources" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="resourceType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="type" use="required"/>
<xs:attribute type="xs:string" name="src" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment