Documentation

Light-weight, fast, simple and powerful!
Translations of this page?:

Introduction

This is a beta version of an XML schema description that can be used to validate the XML file that is pointed to by a plugin's update_url entry.

In principle, no one apart from wolfcms.org will be using this schema since it is the intention that this information for plugins will be hosted in the plugin repository on wolfcms.org.

Graphical representation

Schema (2011-01-22)

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.wolfcms.org"
           xmlns="http://www.wolfcms.org" elementFormDefault="qualified">
 
    <xs:element name="wolf-plugins">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="wolf-plugin" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="id" minOccurs="1" maxOccurs="1">
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:pattern value="\i+"/>
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="version" minOccurs="1" maxOccurs="1">
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+"/>
                                        <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+_rc\p{N}+"/>
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="status" minOccurs="0" maxOccurs="1">
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:enumeration value="stable"/>
                                        <xs:enumeration value="development"/>
                                        <xs:enumeration value="release_candidate"/>
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="requires" minOccurs="0" maxOccurs="1">
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+"/>
                                        <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+_rc\p{N}+"/>
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="download" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
                            <xs:element name="dependencies" minOccurs="0" maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="dependency" minOccurs="1" maxOccurs="unbounded">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="id" minOccurs="1" maxOccurs="1">
                                                        <xs:simpleType>
                                                            <xs:restriction base="xs:string">
                                                                <xs:pattern value="\i+"/>
                                                            </xs:restriction>
                                                        </xs:simpleType>
                                                    </xs:element>
                                                    <xs:element name="version" minOccurs="1" maxOccurs="1">
                                                        <xs:simpleType>
                                                            <xs:restriction base="xs:string">
                                                                <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+"/>
                                                                <xs:pattern value="\p{N}+\.\p{N}+\.\p{N}+_rc\p{N}+"/>
                                                            </xs:restriction>
                                                        </xs:simpleType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
 
projects/xml_schema_for_plugin_update-url_feature.txt · Last modified: 2011-09-12 00:46 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside