Skip to content

Instantly share code, notes, and snippets.

@kaero
Created May 26, 2011 09:36
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 kaero/992841 to your computer and use it in GitHub Desktop.
Save kaero/992841 to your computer and use it in GitHub Desktop.
resources.xsd
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment