public
Created

resources.xsd

  • Download Gist
resources.xsd
XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://example.com/app/resources" xmlns="http://example.com/app/resources"
xmlns:res="http://example.com/app/resources">
<xs:complexType name="resource-description">
<xs:attribute name="src"/>
<xs:attribute name="media"/>
</xs:complexType>
<xs:complexType name="resource-collection">
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="resource"/>
</xs:sequence>
</xs:complexType>
<xs:element name="resource" type="resource-description"/>
<xs:element name="related-resources" type="resource-collection"/>
</xs:schema>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.